[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bug in grep



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