How do you search for a string?
I want to search for the string blah in all the files in a dir, including files in sub-dirs. I have the command:
find . -exec grep "blah" '{}' \; -print
Only problem is once it goes into the sub-dirs it lists them all. How can I stop this? I just want my search to return the exact files that contain that text.
|