Hi.
I am trying to get my command line string correct to find a url (string of text) in all the files below a certain directory on the server.
Here's what I've been typing...
fgrep -i -r 'foobar' /home/* > found.txt
However, I want to skip log files (that end in log and processed) and I only want output of the filenames that the string (foobar) appears in, I don't want the output file to have the actual example of the appearance (just the dir/filenames).
So, how can I do this so that I'll find 'foobar' in all the files, except logs, processed logs, and perhaps exclude *.gz too, with the output showing only the names of files that foobar appears in (one per line)?
Thanks a bunch.
Hugs,
Raeba