Article View: news.software.readers
Article #15895Re: how do I get it?
From: George Nassiopoulos P-353 495-71...
Date: Thu, 09 Mar 1995 18:05
Date: Thu, 09 Mar 1995 18:05
21 lines
1818 bytes
1818 bytes
Greg Berigan (gberigan@cse.unl.edu) wrote:
: The problem is that /dev/null is for output, not input. You use
: /dev/zero for reading. Thus:
: cat /dev/zero >/dev/null
Huh? excuse me but what are you talking about? Since when is
/dev/null not for reading?
If i want an empty file, i.e. a file that returns EOF and nothing
else then i "cat /dev/null"...
e.g. "cat /dev/null | awk '{....}'
"cat /dev/zero" does not return EOF, it returns an infinite number
of \0's. Take a look at the man pages for "zero" and "null"...
George Nassiopoulos
nassio@cfa.harvard.edu
Technical Details
Message-ID:
<D56q9s.G1@cfanews.harvard.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.lang.perl.mbox.zip!nntp.gmd.de!news.rwth-aachen.de!news.rhrz.uni-bonn.de!RRZ.Uni-Koeln.DE!uni-duisburg.de!zib-berlin.de!news.mathworks.com!udel!gatech!psuvax1!hsdndev!cfanews!cfassp16!nassioReferences:
<3iv8uv$9vi@usenet.srv.cis.pitt.edu> <D4q3t5.B1x@info.uucp> <MERLYN.95Feb28214434@linda.teleport.com> <3javk0$l8k@fcca.fcca.csi.com> <3jdm0q$e0j@crcnis3.unl.edu>Show Full Headers
Complete Article Headers
Message-ID: <D56q9s.G1@cfanews.harvard.edu> Subject: Re: how do I get it? Date: Thu, 9 Mar 1995 18:05:51 GMT From: nassio@cfassp16 (George Nassiopoulos P-353 495-7181) References: <3iv8uv$9vi@usenet.srv.cis.pitt.edu> <D4q3t5.B1x@info.uucp> <MERLYN.95Feb28214434@linda.teleport.com> <3javk0$l8k@fcca.fcca.csi.com> <3jdm0q$e0j@crcnis3.unl.edu> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.lang.perl.mbox.zip!nntp.gmd.de!news.rwth-aachen.de!news.rhrz.uni-bonn.de!RRZ.Uni-Koeln.DE!uni-duisburg.de!zib-berlin.de!news.mathworks.com!udel!gatech!psuvax1!hsdndev!cfanews!cfassp16!nassio Newsgroups: alt.sources.d,comp.lang.perl,comp.lang.tcl,news.misc,news.software.readers,alt.folklore.computers Followup-To: alt.sources.d,comp.lang.perl,comp.lang.tcl,news.misc,news.software.readers,alt.folklore.computers Sender: news@cfanews.harvard.edu Organization: Smithsonian Astrophysical Observatory, Cambridge, MA, USA X-Newsreader: TIN [version 1.2 PL0] Lines: 20