Article View: news.software.readers
Article #15787Re: how do I get it?
From: Greg Berigan
Date: Mon, 06 Mar 1995 00:46
Date: Mon, 06 Mar 1995 00:46
35 lines
1947 bytes
1947 bytes
In news.software.readers, raj@plasma (Raj Karamchedu) writes:
>Randal L. Schwartz (merlyn@stonehenge.com) wrote:
>>James Goetz u <goet8570@mach1.wlu.ca> writes:
>>> cat /dev/null | more
>>This is a Useless Use Of Cat. This should be:
>> more /dev/null
>>
>>Or, you could do this with perl as:
>>
>> perl -e 'exec "more /dev/null"'
>What's wrong? :(
>
>plasma{233}file /dev/null
>/dev/null: character special (3/2)
>plasma{234}cat /dev/null
>plasma{235}more /dev/null
>/dev/null is not a regular file
>plasma{236}
The problem is that /dev/null is for output, not input. You use
/dev/zero for reading. Thus:
cat /dev/zero >/dev/null
A common mistake.
--
----' gberigan@cse.unl.edu (Greg Berigan)
------,
,-|-, "Some say he's the devil himself." "I heard he was _
----' '-' a giant chicken!" -- Highlander Boo: The Chickening d b CC
Technical Details
Message-ID:
<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!bga.com!news.sprintlink.net!news.clark.net!rahul.net!a2i!olivea!uunet!news.dsndata.com!backbone!crcnis3.unl.edu!cse.unl.edu!gberiganReferences:
<3iv8uv$9vi@usenet.srv.cis.pitt.edu> <D4q3t5.B1x@info.uucp> <MERLYN.95Feb28214434@linda.teleport.com> <3javk0$l8k@fcca.fcca.csi.com>Show Full Headers
Complete Article Headers
Message-ID: <3jdm0q$e0j@crcnis3.unl.edu> Subject: Re: how do I get it? Date: Mon, 06 Mar 1995 00:46:18 +0000 From: gberigan@cse.unl.edu (Greg Berigan) References: <3iv8uv$9vi@usenet.srv.cis.pitt.edu> <D4q3t5.B1x@info.uucp> <MERLYN.95Feb28214434@linda.teleport.com> <3javk0$l8k@fcca.fcca.csi.com> 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!bga.com!news.sprintlink.net!news.clark.net!rahul.net!a2i!olivea!uunet!news.dsndata.com!backbone!crcnis3.unl.edu!cse.unl.edu!gberigan Newsgroups: alt.sources.d,comp.lang.perl,comp.lang.tcl,news.misc,news.software.readers,alt.folklore.computers Organization: University of Nebraska--Lincoln Lines: 34 NNTP-Posting-Host: cse.unl.edu X-Newsreader: TIN [version 1.2 PL2] Originator: gberigan@cse.unl.edu