Hi Nico, You might want to try: <cd to the directory below which you want to search> find . -type f -print | xargs grep 'string' or find . -type f -print | xargs grep 'string' /dev/null Kind Regards, Mike.
---------- From: info@edoc.co.za[SMTP:info@edoc.co.za] Sent: 22 January 1999 07:57 To: suse-linux-e@suse.com Subject: [SuSE Linux] grep recursive
Hi,
I hope somebody can help me.
I have to search all the files in a directory and its subdirectories and their subdirectories for a string.
I can search a directory at a time with fgrep 'string' *.*, but this is taking ages to do for every dirictory.
Is their a way to grep recursively through the directories? I could not find anything like that in the manual.
Thanks
Nico - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archiv at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
- To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archiv at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>