Try: (untested)

        find . -exec fgrep pattern {} /dev/null \;

which should find files under the current directory and do a 'fgrep' on
them.

Check out the manual page for find(1).

Hope that helps.

Paul Abraham
--
speaking for myself.


> -----Original Message-----
> From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, January 22, 1999 07:58 AM
> To:   [EMAIL PROTECTED]
> 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 [EMAIL PROTECTED] with
this text in its body: unsubscribe suse-linux-e
Check out the SuSE-FAQ at http://www.suse.com/Support/Doku/FAQ/ and the
archiv at http://www.suse.com/Mailinglists/suse-linux-e/index.html

Reply via email to