bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: grep -R "include" *.c --- not working


From: Bob Proulx
Subject: Re: grep -R "include" *.c --- not working
Date: Sat, 2 Oct 2004 12:00:29 -0600
User-agent: Mutt/1.3.28i

Eric Backus wrote:
> Bob Proulx wrote in message 
> >Call me a purist but I still think finding files is best left to find.
> > find . -name '*.c' -print0 | xargs -r0 grep include
> 
> find . -name '*.c' -print0 | xargs -r0 grep include /dev/null
> 
> This ensures that grep always preceeds the match with a filename, even if 
> there's only one file found.

Yes, of course, I forgot that.  I usually leave it off simply to save
typing.  If I actually hit that case I would react to it.  But I
should have included it in my example.

Thanks
Bob




reply via email to

[Prev in Thread] Current Thread [Next in Thread]