The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
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 07-31-2008
satimis satimis is offline
Registered User
  
 

Join Date: Jun 2006
Posts: 45
Quote:
Originally Posted by Yogesh Sawant View Post
to get errors and warnings in the output file, you need to redirect them

Code:
$ locate test.txt 2>&1 | tee -a /path/to/output.txt
Hi Yogesh Sawant,


I got it. Thanks.


Leaving behind is how to save the command together with its output on the file.


B.R.
satimis