









|
[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
[NMOSUG-L] Re: [NMLUG] Random questions #26
Never mind! I see now you were just answering Sarang's question, how to
send the output to two PROGRAMS. doh.
-Ed
On Fri, 2004-11-12 at 08:35, Ed Brown wrote:
> On Fri, 2004-11-12 at 07:31, Wesley J Landaker wrote:
> > On Thursday, 11 November 2004 18:55, Sarang wrote:
> > > % Can I pipe one program's stdout to 2 programs at the same time? [1]
> > $ echo test | tee >(cat > cat.out) | wc > wc.out
>
> This can be simplified a little bit. Tee by default forks standard out
> to a file and standard out, so you could just do this:
>
> echo test | tee echo.out | wc > wc.out
>
> -Ed
>
> _______________________________________________
> NMOSUG-L mailing list
> NMOSUG-L@mailman.swcp.com
> http://mailman.swcp.com/mailman/listinfo/nmosug-l
|
|