question about the "find" command
Posted: 26 Nov 2013 03:53
Is there a way to let "find" only display files were the string was found intead of display every searched file?
Example:
Result:
I'm only interested in this:
Example:
Code: Select all
find "text" *.txt
Result:
Code: Select all
---------- README.TXT
---------- TEST.TXT
text
---------- HIT.TXT
text
---------- SNIPPETS.TXT
I'm only interested in this:
Code: Select all
---------- TEST.TXT
text
---------- HIT.TXT
text