[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bug in grep
- To: misc_(_at_)_openbsd_(_dot_)_org
- Subject: Re: bug in grep
- From: Michael Schmidt <mschmidt_(_at_)_fh-koblenz_(_dot_)_de>
- Date: Tue, 31 Oct 2000 12:02:28 +0100
On Tue, Oct 31, 2000 at 10:52:52AM +0000, ian.cass wrote:
[...]
> cd /usr/src
> grep -r DEBUG *.c
>
> You'd expect it to recurse the directories and find all the files
> containing DEBUG, but it actually says
> grep: *.c: No such file or directory
>
> Seems it's looking for a .c file in the current directory before
> it'll recurse.
Independent on whether it's a bug a quick workaround may be:
cd /usr/src
find . -name \*\.c -print | xargs grep DEBUG
--
Michael Schmidt mschmidt_(_at_)_fh-koblenz_(_dot_)_de
MIRROR OF
Ghostscript * X-Windows X11 * DJGPP * and more...
Visit your host, monkey.org