How to Recursively Find All Files in Directories/Subfolders by Wildcards
Users may come across a situation where they would like to find all files in a directory, folder, or subfolder structure, that match a particular string but with variations to the file names, a situation perfect for finding files based on wildcard matches.
For example, maybe you’d like to locate all files on a file system containing the word “invoice” regardless of where in the filename the text of ‘invoice’ appears (eg, files named like the following; invoice1-2023.pdf, big-invoice-wow.pdf, yourfavoriteinvoice.pdf, invoice-2-22.pdf, etc).
This article will show you how to use the command line to find files recursively in directories and subdirectories by using wildcards that match a string of text that could appear anywhere in the filename itself, with several practical examples.