How can I split and re-join STDOUT from multiple processes?

前端 未结 3 975
南旧
南旧 2021-02-15 04:07

I am working on a pipeline that has a few branch points that subsequently merge-- they look something like this:

         command2
        /        \\
command1           


        
3条回答
  •  独厮守ぢ
    2021-02-15 04:38

    I believe your solution is good and it uses tee as documented. If you read manpage of tee, it says:

    Copy standard input to each FILE, and also to standard output
    

    Your files are process substitutions.

    And the standard output is what you need to remove, because you don't want it, and that's what you did with redirecting it to /dev/null

提交回复
热议问题