X-Spam-Check-By: sourceware.org Date: Tue, 4 Apr 2006 10:16:34 +0200 From: Corinna Vinschen 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 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit 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 Precedence: bulk List-Unsubscribe: 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 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/