[Next] [Previous] [Up] [Top] [Contents]

6.2 File Redirection

6.2.1 Csh

>& file redirect stdout and stderr to file

>>& append stdout and stderr to file

|& command pipe stdout and stderr to command

To redirect stdout and stderr to two separate files you need to first redirect stdout in a sub-shell, as in:

% (command > out_file) >& err_file


Introduction to Unix - 14 AUG 1996
[Next] [Previous] [Up] [Top] [Contents]