Path: 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: Date: 12 Sep 90 19:24:12 GMT References: 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 In article 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?