Dec 30, 2012

Find Files Using a Wildcard in UNIX


- Find command checks recursively in all the folders present with in that path

find files ending with "py" in current directory recursively
find . -iname \*.py

find files starting with prel_log in "/" directory recursively
find / -name perl_log\* -print

- The backslash \ character is important
- It tells the shell not to treat the wildcard character as a wildcard.







No comments:

Post a Comment