怎么发球去stderr? (一个管道中有多个接收器)


4
some_source | (tee /dev/stderr | sink_1) 2>&1 | sink_2

似乎失败了。

如何在没有任何临时工的情况下做到正确?


1
它以什么方式失败了。我得到了相同的结果,例如,grawity的答案和 some_source | { tee /dev/stderr | sink_1; } 2>&1 | sink_2
Dennis Williamson

Answers:


By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.