reverse-tee, or, merging stdout's

Ian Hogg ian at rathe.cs.umn.edu
Sat Apr 20 04:25:17 AEST 1991


In article <819 at llnl.LLNL.GOV> rjshaw at ramius.llnl.gov (Robert Shaw) writes:
>Hi.
>
>Is there any way to do the "reverse" of a tee? meaning that I want two streams
>merged into one, without using files. For example, how do I run 
>
>prog1 arg1 arg2 
> and
>prog2 arg3 arg4 arg5
>
>and "pipe" prog1's stdout, followed by prog2's stdout into prog3?
>
>I want this:
>
>prompt% prog1 arg1 arg2 > tmp1
>prompt% prog2 arg3 arg4 arg5 > tmp2
>prompt% cat tmp1 tmp2 | prog3
>

  Maybe this will work:

  prog1 arg1 arg2 | (cat ; prog2 arg3 arg4 arg5) | prog3

>without using the filesystem.
>
>(email, please)
>
>Thanx, all!
>
>===============================================================================
> Rob Shaw                                              rjshaw at ocfmail.llnl.gov
>===============================================================================


-- 
Ian Hogg                        email:  ian at rathe.cs.umn.edu
                                        ...!umn-cs!rathe!ian
Rathe, Inc                              ianhogg at cs.umn.edu
366 Jackson Street              phone:  (612) 225-1401



More information about the Comp.unix.questions mailing list