Path: utzoo!attcan!uunet!aplcen!uakari.primate.wisc.edu!zaphod.mps.ohio-state.edu!tut.cis.ohio-state.edu!att!cbnews!jbr0 From: jbr0@cbnews.att.com (joseph.a.brownlee) Newsgroups: comp.unix.shell Subject: Re: pipe equivalent to /dev/null ??? Message-ID: <1990Sep13.122243.5246@cbnews.att.com> Date: 13 Sep 90 12:22:43 GMT References: <8720001@hpdmd48.boi.hp.com> <3841@se-sd.SanDiego.NCR.COM> Organization: AT&T Bell Laboratories Lines: 28 In article <3841@se-sd.SanDiego.NCR.COM>, rns@se-sd.SanDiego.NCR.COM (Rick Schubert) writes: > 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. 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@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