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

Richard Coleman coleman at sunny.DAB.GE.COM
Tue Oct 9 05:32:05 AEST 1990


-- 
In article <1990Oct8.165133.17187 at cti-software.nl>, pim at 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 at sunny.dab.ge.com



More information about the Comp.unix.shell mailing list