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

Re: bug in grep



   > > 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