C warning that I can't seem to track down
William Park
opengeometry-FFYn/CNdgSA at public.gmane.org
Wed Aug 9 18:12:02 UTC 2006
On Wed, Aug 09, 2006 at 01:22:46PM -0400, Lennart Sorensen wrote:
> On Wed, Aug 09, 2006 at 11:06:48AM -0400, Chris F.A. Johnson wrote:
> > Even without the -r option, you don't need Python:
> >
> > find /usr/include -type f -print0 | xargs -0 grep PATTERN /dev/null
>
> Whatever does the /dev/null do?
It forces 'grep' to terminate if there is nothing coming through the
pipe. Otherwise, 'grep' will just sit there reading stdin.
--
William Park <opengeometry-FFYn/CNdgSA at public.gmane.org>, Toronto, Canada
ThinFlash: Linux thin-client on USB key (flash) drive
http://home.eol.ca/~parkw/thinflash.html
BashDiff: Super Bash shell
http://freshmeat.net/projects/bashdiff/
--
The Toronto Linux Users Group. Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml
More information about the Legacy
mailing list