grep (GNU grep) 2.5.1 not being recursive.

Corinna Vinschen corinna-cygwin@cygwin.com
Tue Apr 4 08:16:00 GMT 2006


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/



More information about the Cygwin mailing list