[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: grep -R "include" *.c --- not working
From: |
Stepan Kasal |
Subject: |
Re: grep -R "include" *.c --- not working |
Date: |
Thu, 30 Sep 2004 15:25:14 +0200 |
User-agent: |
Mutt/1.4.1i |
Hi Damian,
On Thu, Sep 30, 2004 at 02:21:34AM -0700, 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 .
On UNIX-style systems, wildcards (*.c) are expanded by the shell
_before_ grep is called.
HTH,
Stepan Kasal