Return to Snippet

Revision: 50163
at August 13, 2011 05:41 by klovera


Initial Code
grep -lir "search string" *

Initial URL


Initial Description
-l switch output only the names of files in which the text occurs as opposed to each line containing the text<br>
-i switch ignores the case<br>
-r descends into subdirectories<br>

Example:
grep -lir "my search string" /home/account_name/public_html/

Initial Title
Find files containing search string

Initial Tags
Bash, search

Initial Language
Bash