Recursive grep [WAS: Re: date]

Andre Oliveira da Costa
Thu Jan 11 13:51:00 GMT 2001

> find . -name \*.cc -exec echo '{}' ';' -exec grep getenv '{}' ';'


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 ;)



Want to unsubscribe from this list?
Check out:

More information about the Cygwin mailing list