recursive grep

Brendan Simon bsimonATctam.com.au
Tue Sep 14 17:50:00 GMT 1999


Christopher Jones wrote:

> > The UNIXy way to do this is
> >
> > find | xargs grep <pattern>
> >
>
> or find -exec grep <pattern> \{\} \; -print
>
> proving once again there is more than one way to do just about anything.

I use
grep pattern `find`
or
grep pattern `find . -name "*.c"`

This sometimes can fill the command line up though for large file matches.

Brendan Simon.


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com



More information about the Cygwin mailing list