This is the mail archive of the cygwin@sources.redhat.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 [WAS: Re: date]


> 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


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