🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.shell
Article #1425

Re: How to pipe stderr to a command in Bourne or Korn shell

#1425
From: Richard Coleman
Date: Mon, 08 Oct 1990 19:32
15 lines
995 bytes
-- 
In article <1990Oct8.165133.17187@cti-software.nl>, pim@cti-software.nl (Pim Zandbergen) writes:
|> 
|> How can one redirect stderr to a command while leaving stdout unaffected ?


For csh and bash try       (command > temp1) >& temp2
For sh                      command 2> temp

somebody else will have to handle ksh.

     Richard Coleman
     G.E. Simulation & Control Systems
     coleman@sunny.dab.ge.com
Technical Details
Message-ID: <6133@ge-dab.GE.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!crdgw1!ge-dab!sundae9!coleman
References: <1990Oct8.165133.17187@cti-software.nl>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!crdgw1!ge-dab!sundae9!coleman
From: coleman@sunny.DAB.GE.COM (Richard Coleman)
Newsgroups: comp.unix.shell
Subject: Re: How to pipe stderr to a command in Bourne or Korn shell
Message-ID: <6133@ge-dab.GE.COM>
Date: 8 Oct 90 19:32:05 GMT
References: <1990Oct8.165133.17187@cti-software.nl>
Sender: news@ge-dab.GE.COM
Reply-To: coleman@sunny.DAB.GE.COM (Richard Coleman)
Organization: General Electric SCSD, Daytona Beach FL
Lines: 15