[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: Martin Portmann <map_(_at_)_infinitum_(_dot_)_ch>
- Date: Wed, 1 Nov 2000 02:22:17 +0100
> > 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
How about 'cd .. ; grep -r DEBUG src'?
------------------------------------------------------------
Martin Portmann Phone +41-41-7832720
infinitum AG, Switzerland Fax +41-41-7832721
Software Solutions www.infinitum.ch
"Time is the best teacher, unfortunately it kills all its
students"
Visit your host, monkey.org