delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/08/08/05:24:17

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-5.6 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE
X-Spam-Check-By: sourceware.org
Message-ID: <50223025.90003@gmail.com>
Date: Wed, 08 Aug 2012 11:23:49 +0200
From: marco atzeri <marco DOT atzeri AT gmail DOT com>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20120713 Thunderbird/14.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: problem using recursive grep (-r option)
References: <34266659 DOT post AT talk DOT nabble DOT com> <CAM7SfR2UneeDR+Np59MAhR8opFzcEUVceYKe0xxLi=-8riw53g AT mail DOT gmail DOT com> <34270643 DOT post AT talk DOT nabble DOT com>
In-Reply-To: <34270643.post@talk.nabble.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On 8/8/2012 11:11 AM, AngusC wrote:
>
DO NOT TOP POST !

> I did try the --include way but in Cygwin it didn't work for some reason.
>
> Neither does
>
> find "." -name "*.log" -exec grep -nH "my pattern" {} \;

find "." -name "*.log" -exec grep -nH "my pattern" \{\} \;



--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019