delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/04/04/04:16:42

X-Spam-Check-By: sourceware.org
Date: Tue, 4 Apr 2006 10:16:34 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: grep (GNU grep) 2.5.1 not being recursive.
Message-ID: <20060404081634.GH24357@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <10845a340604040052h57f135a3ga98e06daea222ec1 AT mail DOT gmail DOT com> <20060404081137 DOT GB4294 AT implementation DOT labri DOT fr>
Mime-Version: 1.0
In-Reply-To: <20060404081137.GB4294@implementation.labri.fr>
User-Agent: Mutt/1.4.2i
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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 Apr  4 10:11, Samuel Thibault wrote:
> Hi,
> 
> Richard Quadling, le Tue 04 Apr 2006 08:52:09 +0100, a écrit :
> > grep -e%v%v -R *.c
> > 
> > but this does nothing. Instead I get an error saying
> > grep: *.c: No such file or directory
> 
> Grep is not responsible for expansing the star. The shell is. Change
> your shell ;)

I'd suggest to read the grep man page again, too.  The -R option
works for directories on the command line, not for files.  What
you're looking for is

  grep -e%v%v -R --include='*.c' .


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

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

- Raw text -


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