This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: recursive grep


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]