Subject: Re: Broken since 1.3.10, or earlier
From: Andrew DeFaria <[email-masked]>
To: [email-masked]
Date: Tue, 16 Jul 2002 20:12:05 -0700
Newsgroups: gmane.os.cygwin

Dan Higgins wrote:

> Greetings,
>
> If I want to recursively find all files that contain some text, I use, 
> for example:
>
> find . -name '*.java' | while read l; do grep 'Copyright' "$l" && echo 
> "$l";
> done

Just as an alternative, why not:

$ find . -name '*.java' -exec grep 'Copyright' {}\;

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/