This is the mail archive of the
cygwin@sources.redhat.com
mailing list for the Cygwin project.
RE: Recursive grep [WAS: Re: date]
- To: <cygwin at cygwin dot com>,<gerrit dot haase at t-online dot de>
- Subject: RE: Recursive grep [WAS: Re: date]
- From: "Andre Oliveira da Costa" <costa at cade dot com dot br>
- Date: Thu, 11 Jan 2001 19:51:49 -0200
> find . -name \*.cc -exec echo '{}' ';' -exec grep getenv '{}' ';'
Or...
find . -name \*.cc -print | xargs grep getenv
this way you wouldn't execute echo + grep for each file; instead you'd
execute grep over a bunch of files.
Just my $ 0.02 ;)
Best,
Andre
--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple