Shell : quick newb question - redirecting to file

ZIYAD A. M. AL-BATLY zamb at saudi.net.sa
Tue Jul 12 12:43:54 UTC 2005


On Tue, 2005-07-12 at 12:34 +0100, Colin Watson wrote:
  <snip>
> 
> If you want to redirect both stdout and stderr to a file, use this
> instead:
> 
>   programName >outputFile 2>&1
> 
Or a special "short cut" that do the same thing as above:
    programName &>outputFile

Ziyad.




More information about the ubuntu-users mailing list