想要实现以下目标
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