The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 08-29-2008
PacificWonder PacificWonder is offline
Registered User
  
 

Join Date: Jun 2008
Posts: 10
Quote:
Originally Posted by indianwomen View Post

./test.sh 1> test.txt 2>&1

try the rearranged command as follows.

./test.sh 2>&1 >test.txt