reverse-tee, or, merging stdout's

Robert Earl rearl at gnu.ai.mit.edu
Mon Apr 22 16:58:29 AEST 1991


In article <7204 at segue.segue.com> jim at segue.segue.com (Jim Balter) writes:

|   In article <1991Apr19.182517.199 at rathe.cs.umn.edu> ian at 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
<rearl at gnu.ai.mit.edu>
<rearl at watnxt3.ucr.edu>



More information about the Comp.unix.questions mailing list