pipe equivalent to /dev/null ???

Rick Schubert rns at se-sd.SanDiego.NCR.COM
Wed Sep 12 05:52:52 AEST 1990


In <8720001 at hpdmd48.boi.hp.com> oscarh at 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 at se-sd.sandiego.NCR.COM)



More information about the Comp.unix.shell mailing list