I am trying to find a particular string of text in a file somewhere on my hard drive. The best I have come up with so far is:
find -type f / | xargs cat | grep "string to find"
But this just tells me whether the string exists somewhere or not.
How can I know what file I have found it in?
Is there a better way?