pipe equivalent to /dev/null ???
joseph.a.brownlee
jbr0 at cbnews.att.com
Thu Sep 13 22:22:43 AEST 1990
In article <3841 at se-sd.SanDiego.NCR.COM>, rns at se-sd.SanDiego.NCR.COM (Rick
Schubert) writes:
> 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.
Yes, that works, and it works in the Korn shell as well. At least in the
context shown above, it is logically equivalent to the "anycommand | true"
case.
--
- _ Joe Brownlee, Analysts International Corp. @ AT&T Network Systems
/_\ @ / ` 471 E Broad St, Suite 1610, Columbus, Ohio 43215 (614) 860-7461
/ \ | \_, E-mail: jbr at cblph.att.com Who pays attention to what _I_ say?
"Scotty, we need warp drive in 3 minutes or we're all dead!" --- James T. Kirk
More information about the Comp.unix.shell
mailing list