Posted By

arunpjohny on 03/18/08



Versions (?)

Find files that contain a text string

 / Published in: Other


The -l switch outputs only the names of files in which the text occurs (instead of each line containing the text), the -i switch ignores the case, and the -r descends into subdirectories.

  1. grep -lir "text to find" *

Report this snippet  

You need to login to post a comment.