Posted By

klovera on 08/13/11


Tagged

Shell Bash search grip


Versions (?)

Find files containing search string


 / 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/

  1. grep -lir "search string" *

Report this snippet  

You need to login to post a comment.