Recursive grep [WAS: Re: date]

Andre Oliveira da Costa costa@cade.com.br
Thu Jan 11 13:51:00 GMT 2001


> 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



More information about the Cygwin mailing list