エラー出力と標準出力
- 別のファイルに出したいとき。
% command 1>file1 2>file2
- エラー出力だけをページャで見たいとき。
% command 2>&1 1>/dev/null | less
- エラー出力を捨てたいとき。(標準出力だけみたいとき)
% command 2>/dev/null
Unixの部屋より
% command 1>file1 2>file2
% command 2>&1 1>/dev/null | less
% command 2>/dev/null