Sunday, October 12, 2008

Searching for all the files containing a string

Recursively search all files from the current directory down, ignoring case: grep -ir search_string .
Recursively search all files from the current directory down, ignoring case, and only get the file listing: grep -irl search_string .

No comments: