Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!think.com!paperboy!snorkelwacker.mit.edu!ai-lab!life.ai.mit.edu!rearl From: rearl@gnu.ai.mit.edu (Robert Earl) Newsgroups: comp.unix.questions Subject: Re: reverse-tee, or, merging stdout's Message-ID: Date: 22 Apr 91 06:58:29 GMT References: <819@llnl.LLNL.GOV> <1991Apr19.182517.199@rathe.cs.umn.edu> <7204@segue.segue.com> Sender: news@ai.mit.edu Organization: (EVIL!) Lines: 23 In-reply-to: jim@segue.segue.com's message of 21 Apr 91 22:16:48 GMT In article <7204@segue.segue.com> jim@segue.segue.com (Jim Balter) writes: | In article <1991Apr19.182517.199@rathe.cs.umn.edu> ian@rathe.cs.umn.edu (Ian Hogg) writes: | > Maybe this will work: | > | > prog1 arg1 arg2 | (cat ; prog2 arg3 arg4 arg5) | prog3 | | and maybe it won't. If you have doubts, why not try it before posting? | | What will work are | | prog1 arg1 arg2 | (cat - ; prog2 arg3 arg4 arg5) | prog3 I fail to see a difference between these two. `cat' with no arguments implies `cat -'. At any rate, this second one is the obvious way to do it, and is what I suggested in email: | ( prog1 arg1 arg2 ; prog2 arg3 arg4 arg5) | prog3 --robert