From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19732 invoked by alias); 7 Aug 2012 15:56:01 -0000 Received: (qmail 19720 invoked by uid 22791); 7 Aug 2012 15:56:00 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from enfirhets1.metaswitch.com (HELO ENFIRHETS1.metaswitch.com) (192.91.191.166) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 07 Aug 2012 15:55:43 +0000 Received: from ENFICSMBX1.datcon.co.uk (172.18.10.94) by ENFIRHETS1.metaswitch.com (172.18.209.22) with Microsoft SMTP Server (TLS) id 14.2.298.4; Tue, 7 Aug 2012 16:55:36 +0100 Received: from ENFIRHMBX1.datcon.co.uk ([fe80::b06d:4d13:5f63:3715]) by ENFICSMBX1.datcon.co.uk ([fe80::d5d5:c683:a3be:3a19%18]) with mapi id 14.02.0298.004; Tue, 7 Aug 2012 16:55:41 +0100 From: Adam Dinwoodie To: "cygwin@cygwin.com" Subject: RE: problem using recursive grep (-r option) Date: Tue, 07 Aug 2012 15:57:00 -0000 Deferred-Delivery: Tue, 7 Aug 2012 15:53:00 +0000 Message-ID: References: <34266659.post@talk.nabble.com> In-Reply-To: <34266659.post@talk.nabble.com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-IsSubscribed: yes Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2012-08/txt/msg00170.txt.bz2 AngusC wrote: >If I use the command: > >grep -nH -r "my pattern" *.* > >I get results back as expected > >But if the file pattern is like this: > >grep -nH -r "my pattern" *.log > >I get no results back (Even though I have a ton of files with this pattern >with .log file extension). > >Am I doing something wrong? Yes. At a guess, all your .log files are in subdirectories that don't match *.lo= g. I'd recommend using `find`. Running `man find` will give you some instructi= ons, as will Google. That said, you've not given any indication as to why your problem is specifically relevant to Cygwin. There're plenty of places to get general h= elp with using Linux tools, but this isn't one of them -- this list is for prob= lems that are specific to Cygwin. I'd personally recommend heading over to Stack Overflow or Super User, but there're *many* alternatives for advice on using generic Linux tools. If you do want advice from here, I recommend reading and following the instructions at . Folk here tend to be much more accommodating if you show you've done the basic research yourself. -- 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