Ronaldr said:Hello All,
I'm looking for a particular string or phrase in a wide group of files.
is there a way to search the content of all files for a particular string/phrase match ?
% grep -r 'your search here' *
SirDice said:Or, if you only want to search in .txt files, combine it with find(1).
$ find /some/dir -name '*.txt' -exec grep -li 'searchstring' {} \;
grep -lr --include "*.txt" 'searchstring' /some/dir
grep -Flr --include "*.txt" 'searchstring' /some/dir