How to get better piping in sh
Frank P. Bresz
fpb at ittc.wec.com
Thu Sep 13 01:32:35 AEST 1990
Hi There,
I am trying to get the following csh-like behavior in sh.
foo |& tee junk
This will take the output and the errors from the program foo and
save everything together in the file junk as well as sending it to the
screen. I want a /bin/sh solution please. Not perl, not bash, not anything
that won't work on a virgin Sun machine i.e. without anything but what Sun
gives you.
--
Frank P. Bresz | Westinghouse Electric Corporation () () ()
fpb at ittc.wec.com | ITTC Simulators Department \ /\ /
uunet!ittc!fpb | Those who can, do. Those who can't, simulate. \/ \/
(412)733-6749 | @disclaimer(My opinions are my own, ----------
Fx:(412)733-6444 | I don't earn enough to issue "official" opinions for WEC)
More information about the Comp.unix.shell
mailing list