🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.shell
Article #1061

Re: How to get better piping in sh

#1061
From: Michael Meissner
Date: Wed, 12 Sep 1990 19:24
23 lines
1324 bytes
In article <FPB.90Sep12113235@schlitz.ittc.wec.com> fpb@ittc.wec.com
(Frank P. Bresz) writes:

| 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.

	foo 2>&1 | tee junk

will do the job in anything that calls itself Bourne compatible.
--
Michael Meissner	email: meissner@osf.org		phone: 617-621-8861
Open Software Foundation, 11 Cambridge Center, Cambridge, MA, 02142

Do apple growers tell their kids money doesn't grow on bushes?
Technical Details
Message-ID: <MEISSNER.90Sep12152412@osf.osf.org>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!mit-eddie!snorkelwacker!paperboy!meissner
References: <FPB.90Sep12113235@schlitz.ittc.wec.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!mit-eddie!snorkelwacker!paperboy!meissner
From: meissner@osf.org (Michael Meissner)
Newsgroups: comp.unix.shell
Subject: Re: How to get better piping in sh
Message-ID: <MEISSNER.90Sep12152412@osf.osf.org>
Date: 12 Sep 90 19:24:12 GMT
References: <FPB.90Sep12113235@schlitz.ittc.wec.com>
Sender: news@OSF.ORG
Distribution: usa
Organization: Open Software Foundation
Lines: 23
In-reply-to: fpb@ittc.wec.com's message of 12 Sep 90 15:32:35 GMT