Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!spool.mu.edu!cs.umn.edu!kksys!wd0gol!rathe!ian From: ian@rathe.cs.umn.edu (Ian Hogg) Newsgroups: comp.unix.questions Subject: Re: reverse-tee, or, merging stdout's Message-ID: <1991Apr19.182517.199@rathe.cs.umn.edu> Date: 19 Apr 91 18:25:17 GMT References: <819@llnl.LLNL.GOV> Organization: Rathe, Inc. Lines: 39 In article <819@llnl.LLNL.GOV> rjshaw@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@ocfmail.llnl.gov >=============================================================================== -- Ian Hogg email: ian@rathe.cs.umn.edu ...!umn-cs!rathe!ian Rathe, Inc ianhogg@cs.umn.edu 366 Jackson Street phone: (612) 225-1401