Subject: Re: redirecting error messages
To: Steve Revilak <revilak@umbsky.cc.umb.edu>
From: Dave Schmitt <dschmi1@umbc.edu>
List: port-mac68k
Date: 05/28/1999 10:56:19
On Fri, 28 May 1999, Steve Revilak wrote:

> If you're using a C-shell variant, then
> 
> 	command >& filename.txt   (overwrites filename.txt)
> or
> 
> 	command >>& filename.txt  (appends to filename.txt)
> 
> The ampersand causes the redirection of stderr and stdout to the same
> file -- unlike sh, it can't send them to two different places.  

Actually it can, but the syntax is horrible:

(command > output.txt) >& error.txt

Again, >> and >>& would append instead of overwrite...

-- 
Dave Schmitt <dschmi1@umbc.edu>