How to search all files for a text string: grep -lr string ./ > results.txt -l will print only the path and file names of the matches. Search all files of a certain name for a certain string: grep -lr string ./ | grep filename Yes, do specify ./ if you are doing all directories [...]
Categories
Archives