I would like to do a wildcard search on a filename including all subfolders of the current directory. I have a script which does something similar but requires the full filename. Can anyone help?
For files and dirs:
[tt]find . -print | grep pattern[/tt]
For files:
[tt]find . -type f -print | grep pattern[/tt]
For file contents:
[tt]find . -type f -print | xargs -n2 grep pattern[/tt]
Cheers, Neil
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.