Return to Snippet

Revision: 9310
at October 29, 2008 23:42 by sanjivarunsahayamhotmailcom


Initial Code
find -name your_file_matcher -exec grep 'text_to_match' -H {} \;

eg.

find -name *.pom -exec grep 'apache' -H {} \;

Initial URL


Initial Description
Searches for some text in a list of files. Displays the results with the filename where the snippet was found.

Initial Title
Search a list of files for some text

Initial Tags
Bash, linux, find

Initial Language
Bash