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: Stephane Chazelas
Subject: Re: grep -R "include" *.c --- not working
Date: Fri, 1 Oct 2004 09:22:44 +0100
User-agent: Mutt/1.5.6i

On Thu, Sep 30, 2004 at 10:46:32PM -0600, Bob Proulx wrote:
[...]
> Call me a purist but I still think finding files is best left to find.
> 
>   find . -name '*.c' -print0 | xargs -r0 grep include
[...]

Why not the shell:

grep include ./**/*.c

(with zsh or ksh93).

You may need zargs (zsh) or command -x (ksh93) if the command line
might get too long.

-- 
Stephane

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________




reply via email to

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