Find files containing search string


/ Published in: Bash
Save to your folder(s)

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

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.