Article View: comp.unix.shell
Article #1178How to get better piping in sh
From: Frank P. Bresz
Date: Wed, 12 Sep 1990 15:32
Date: Wed, 12 Sep 1990 15:32
18 lines
1177 bytes
1177 bytes
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)
Technical Details
Message-ID:
<FPB.90Sep12113235@schlitz.ittc.wec.com>Path:
arc1-ca.pugleaf.net!utzoo!attcan!telly!lethe!becker!hybrid!scifi!bywater!uunet!ittc!fpbShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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: <FPB.90Sep12113235@schlitz.ittc.wec.com> Date: 12 Sep 90 15:32:35 GMT Sender: news@ittc.wec.com Distribution: usa Organization: Westinghouse, ITTC, Pgh, PA. Lines: 18