/ Published in: Bash
-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/accountname/publichtml/
Expand |
Embed | Plain Text
grep -lir "search string" *
You need to login to post a comment.
