This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: recursive grep
- To: "cygwin cygwin" <cygwin AT sourceware.cygnus dot com>
- Subject: Re: recursive grep
- From: "Michael K. Elwood" <mkelwood AT qsicorp dot com>
- Date: Tue, 14 Sep 1999 13:32:04 -0600
- References: <37DE848D.A55EE21A@roving.com>
- Reply-To: "Michael K. Elwood" <mkelwood AT qsicorp dot com>
> Is there something I'm missing, or does this version of grep not support
> a recursive option? I've never used a grep that couldn't do this....
The UNIXy way to do this is
find | xargs grep <pattern>
xargs is the totally cool glue that makes this construct work. Check the man
page for xargs. You can also constrain the files fed to grep using standard
'find' syntax.
Hope this helps.
Best regards,
MKE
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com