Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com To: cygwin AT cygwin DOT com X-Injected-Via-Gmane: http://gmane.org/ Path: not-for-mail From: Andrew DeFaria Newsgroups: gmane.os.cygwin Subject: Re: Broken since 1.3.10, or earlier Date: Tue, 16 Jul 2002 20:12:05 -0700 Lines: 15 Message-ID: <3D34E085.4040600@DeFaria.com> References: NNTP-Posting-Host: dsl-64-195-250-225.telocity.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1026875553 20922 64.195.250.225 (17 Jul 2002 03:12:33 GMT) X-Complaints-To: usenet AT main DOT gmane DOT org NNTP-Posting-Date: Wed, 17 Jul 2002 03:12:33 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0rc2) Gecko/20020512 Netscape/7.0b1 X-Accept-Language: en,ru 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/