How to get better piping in sh

35G-ZEINELDINE alaa at hjuxa
Tue Sep 18 23:20:07 AEST 1990


>From article <FPB.90Sep12113235 at schlitz.ittc.wec.com>, by fpb at ittc.wec.com (Frank P. Bresz):
> 
> 	I am trying to get the following csh-like behavior in sh.
> 
> foo |& tee junk

The following should work for the Bourne shell:

	foo 2>&1 | tee junk

alaa



More information about the Comp.unix.shell mailing list