cat *.txt | grep <search>
which will list all of the occurances of a string in the files with .txt extension. But the output isn't what I need.
I need to know which files the search string was actually in. Is there a way in cat or grep to output the filename?


Sign In
Create Account


Back to top









