Path: utzoo!attcan!telly!lethe!becker!hybrid!scifi!bywater!uunet!ittc!fpb From: fpb@ittc.wec.com (Frank P. Bresz) Newsgroups: comp.unix.shell Subject: How to get better piping in sh Message-ID: Date: 12 Sep 90 15:32:35 GMT Sender: news@ittc.wec.com Distribution: usa Organization: Westinghouse, ITTC, Pgh, PA. Lines: 18 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@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)