Tag Archives: find

Find Text and Find/Replace Easier Than You Think in Linux

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 [...]

Posted in quickfire, tips | Also tagged , , , , | 1 Comment