This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: recursive grep
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