[Top][All Lists]
[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: |
Thu, 30 Sep 2004 22:46:32 -0600 |
User-agent: |
Mutt/1.3.28i |
Stepan Kasal wrote:
> Damian Gutierrez wrote:
> > > grep -R "include" *.c
>
> this searches for *.c in current dir. There is no such file.
> This doesn't search subdirectories.
>
> What you meant is
> grep -R --include='*.c' include .
Call me a purist but I still think finding files is best left to find.
find . -name '*.c' -print0 | xargs -r0 grep include
Bob
- Re: grep -R "include" *.c --- not working,
Bob Proulx <=