Posted By

arunpjohny on 03/18/08


Tagged

linux


Versions (?)

Find files that contain a text string


 / Published in: Other
 

URL: http://smart-pad.blogspot.com/2006/11/linux-find-files-containing-text.html

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.