Article View: comp.sys.amiga.tech
Article #7077Re: Pipe syntax... I think I'd better think it out again...
From: Mike (My Watch Has Windows) Meye...
Date: Wed, 28 Nov 1990 22:48
Date: Wed, 28 Nov 1990 22:48
22 lines
1871 bytes
1871 bytes
In article <7151@sugar.hackercorp.com> peter@sugar.hackercorp.com (Peter da Silva) writes:
Path: bacchus.pa.dec.com!news.crl.dec.com!shlump.nac.dec.com!decuac!haven!purdue!bu.edu!rpi!zaphod.mps.ohio-state.edu!lavaca.uh.edu!menudo.uh.edu!sugar!peter
In article <MWM.90Nov25180550@raven.relay.pa.dec.com> mwm@raven.relay.pa.dec.com (Mike (My Watch Has Windows) Meyer) writes:
+ PIPE=/tmp/pip$$; mknod $PIPE p
> grep WSE /etc/passwd | awk -F: ' { print $1 } ' | sort |
| tee $PIPE | # this needs to be the split
> fgrep -f /dev/stdin /usr/lib/aliases | sed '/ /d' |
> tee aliaslist | sed 's/.*://' | sort |
| uniq -u - $PIPE # and this is where the split needs to rejoin
+ rm $PIPE
I know, not as pretty... On the Amiga this could be handled quite easily
just by making PIPE=pipe:temp. But the rest of the command is more managable
using the UNIX pipe syntax.
Well, with pipe: it works just fine. But using a real file for $PIPE
means you buy back many of the problems pipes were invented to get
around.
<mike
--
Technical Details
Message-ID:
<MWM.90Nov28174855@raven.relay.pa.dec.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watmath!att!att!pacbell.com!ucsd!usc!zaphod.mps.ohio-state.edu!wuarchive!udel!haven!decuac!bacchus.pa.dec.com!bacchus!mwmReferences:
<1990Nov18.090654.24747@agate.berkeley.edu> <MWM.90Nov19143124@raven.relay.pa.dec.com> <1990Nov24.073827.10945@agate.berkeley.edu> <MWM.90Nov25180550@raven.relay.pa.dec.com> <7151@sugar.hackercorp.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watmath!att!att!pacbell.com!ucsd!usc!zaphod.mps.ohio-state.edu!wuarchive!udel!haven!decuac!bacchus.pa.dec.com!bacchus!mwm From: mwm@raven.relay.pa.dec.com (Mike (My Watch Has Windows) Meyer) Newsgroups: comp.sys.amiga.tech Subject: Re: Pipe syntax... I think I'd better think it out again... Message-ID: <MWM.90Nov28174855@raven.relay.pa.dec.com> Date: 28 Nov 90 22:48:55 GMT References: <1990Nov18.090654.24747@agate.berkeley.edu> <MWM.90Nov19143124@raven.relay.pa.dec.com> <1990Nov24.073827.10945@agate.berkeley.edu> <MWM.90Nov25180550@raven.relay.pa.dec.com> <7151@sugar.hackercorp.com> Sender: news@wrl.dec.com (News) Organization: Missionaria Phonibalonica Lines: 22 In-Reply-To: peter@sugar.hackercorp.com's message of 28 Nov 90 12:25:18 GMT