Linux Shell – Recursively Find Files with Wildcard Matching

linuxshell

How can I recursively find all files in current and subfolders based on wildcard matching?

Best Answer

Use find:

find . -name "foo*"

find needs a starting point, so the . (dot) points to the current directory.

If you need case insensitive search use :

find . -iname "foo*"
Related Question