Return to Snippet

Revision: 5596
at March 18, 2008 09:01 by arunpjohny


Initial Code
grep -lir "text to find" *

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

Initial Description
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.

Initial Title
Find files that contain a text string

Initial Tags
linux

Initial Language
Other