[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: recurse directories option for grep
From: |
Alain Magloire |
Subject: |
Re: recurse directories option for grep |
Date: |
Wed, 1 Aug 2001 21:05:04 -0400 (EDT) |
>
> I seemed to have found a bug in
> address@hidden --version
> grep (GNU grep) 2.4.2
>
> This is running from cygwin on Windows NT4.0 w/ Service Pack 6
>
> the problem is with the recurse directories '-r' option. If no matching
> filetypes are found in the current directory grep does NOT proceed to
> recurse the subdirs.
>
> for e.g. running "grep -r void *.cpp" on the following dir tree
> returns "grep: No match" without checking the subdirs code1 and code2
Please read more carefully the documentation that comes with GNU grep on
the behaviour of the '-r' and '--directories' options. GNU grep comes
with an info file also.
In short, grep will recurse in the directories you specify on the command
line.
Thanks for the feedback
--
alain