🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.shell
Article #1045

Re: pipe equivalent to /dev/null ???

#1045
From: Rick Schubert
Date: Tue, 11 Sep 1990 19:52
25 lines
1031 bytes
In <8720001@hpdmd48.boi.hp.com> oscarh@hpdmd48.boi.hp.com (Oscar Herrera) writes:

>Is there an equivalent 'pipe' like entity to /dev/null ?
>What I'd like to do is something like this 
>	anycommand | bitbucket

I've seen responses of
	anycommand | true
and
	anycommand | cat >/dev/null

What about
	anycommand | :
?

I'm not sure if this is shell-specific, but it works with the Bourne
shell and the C shell, at least on our system.

(You mean you thought ":" was a comment indicator?  Try

	: > somefilename

)

-- Rick Schubert (rns@se-sd.sandiego.NCR.COM)
Technical Details
Message-ID: <3841@se-sd.SanDiego.NCR.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!sol.ctr.columbia.edu!emory!hubcap!ncrcae!ncr-sd!se-sd!rns
References: <8720001@hpdmd48.boi.hp.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!sol.ctr.columbia.edu!emory!hubcap!ncrcae!ncr-sd!se-sd!rns
From: rns@se-sd.SanDiego.NCR.COM (Rick Schubert)
Newsgroups: comp.unix.shell
Subject: Re: pipe equivalent to /dev/null ???
Message-ID: <3841@se-sd.SanDiego.NCR.COM>
Date: 11 Sep 90 19:52:52 GMT
References: <8720001@hpdmd48.boi.hp.com>
Organization: NCR Corporation, Systems Engineering - San Diego
Lines: 25