Newbie question:
How can I search a directory and all of its sub directories for a file
containing a specified text string. I know how to use grep to search a
single directory but is there a way to make it search all of the sub
directories too?
I tried using Find along with Grep:
find / -type f -print | xargs grep <string_to_search_for>
But I get the error message:
grep: warning: /proc/kcore: operation not supported by device
It trys to search files that grep can not deal with, generates error
messages and fills the screen up with junk. Is there a way to limit the
search to scripts, config files and source files?
Maybe there is another program that I should be using?? I am new to
Linux/unix so I don't know the tool set very well yet.
TIA,
Dave