【发布时间】:2012-02-25 03:30:01
【问题描述】:
我有一个管道正在做
command1 | command2
因此, command1 的 stdout 转到 command2 ,而 command1 的 stderr 转到终端(或 shell 的任何 stdout 所在的位置)。
当 stdout 仍将传输到 command2 时,如何将 command1 的 stderr 通过管道传输到第三个进程 (command3)?
【问题讨论】:
标签: bash shell pipe io-redirection