🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.unix.shell
2 messages
2 total messages Started by Frank P. Bresz Wed, 12 Sep 1990 15:32
How to get better piping in sh
#1178
Author: Frank P. Bresz
Date: Wed, 12 Sep 1990 15:32
18 lines
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)
Re: How to get better piping in sh
#1166
Author: 35G-ZEINELDINE
Date: Tue, 18 Sep 1990 13:20
11 lines
633 bytes
From article <FPB.90Sep12113235@schlitz.ittc.wec.com>, by fpb@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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads