That works but I generally prefer something more fun... find . -depth | xargs grep "string I am looking for" It seems to run a bit faster for me (Strange considering it is loading find, xargs and grep) and also, there are so many switches with find, you can do almost anything. Have fun, Scott -----Original Message----- From: redhat-list-admin@xxxxxxxxxx [mailto:redhat-list-admin@xxxxxxxxxx]On Behalf Of Ben Yau Sent: Monday, January 12, 2004 12:49 PM To: redhat-list@xxxxxxxxxx Subject: RE: About grep > > On January 11, 2004 07:50 pm, MKlinke wrote: > > > > Take a look at the documentation: "man grep" and look for the string > > "recurse." It's about 1/2 way down the page. > > > > Regards, Mike Klinke > > > hmm, that would be much simpler than playing with the powerful > and confusing > 'find' :-o > -- But less fun :) Agreed from a practical point of view: >From the grep(1) page: -R, -r, --recursive Read all files under each directory, recursively; this is equiv- alent to the -d recurse option. If you're going to do that you may also be interested in: -a, --text Process a binary file as if it were text; this is equivalent to the --binary-files=text option. Ben Y -- redhat-list mailing list unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list -- redhat-list mailing list unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list