This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: grep (GNU grep) 2.5.1 not being recursive.
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/