Subject: Re: groff-1.16.1 reach-over
To: John Hawkinson <jhawk@MIT.EDU>
From: Andrew Brown <atatat@atatdot.net>
List: tech-userlevel
Date: 04/17/2001 20:40:28
>| of course, you can always do this:
>| 
>|    # cd /usr/src
>|    # find . -name Makefile | xargs grep ^.PATH | grep cksum
>
>You should never use xargs like that, because it might call
>grep with only one argument in which case a filename would not be
>printened. Instead, use
>
>  find . -name Makefile | xargs grep ^.PATH /dev/null | grep cksum

actually...there's the -H option to grep to work around that (the
complement of -h) but in this particular case, -l is probably more
useful.  the output of grep is (possibly) not altogether complete, so
simply knowing the filename is better.

-- 
|-----< "CODE WARRIOR" >-----|
codewarrior@daemon.org             * "ah!  i see you have the internet
twofsonet@graffiti.com (Andrew Brown)                that goes *ping*!"
andrew@crossbar.com       * "information is power -- share the wealth."