Find Files Containing Text
Join the DZone community and get the full member experience.Join For Free
Find files that contain a text string:
grep -lir "some text" *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.
Opinions expressed by DZone contributors are their own.