Bash tee并粘贴在一行中

时间:2015-02-18 18:12:01

标签: bash

想要实现以下目标

command | tee out1 | some_filter > out2 #the some_filter doesn't changes the line count
paste out1 out2 | sed '...' > final_out

问题是,是否有可能在一行中使用一些花哨的重定向,而没有任何临时文件?类似的东西:

( command | tee >(some_filter) >(???) ) | paste - - | sed '...' > final_out

0 个答案:

没有答案