To find files that contain a text string in linux is very easy. Open terminal locate to the folder. Use below command.
grep -lir “search text” *
The -l switch outputs only the names of files in which the text occurs, the -i switch ignores the case, and the -r descends into sub directories.
Leave a Reply