OS X / Linux: pipe into two processes?

前端 未结 6 1624
醉酒成梦
醉酒成梦 2020-11-27 15:08

I know about

program1 | program2

and

program1 | tee outputfile | program2

but is there a way to feed prog

6条回答
  •  借酒劲吻你
    2020-11-27 16:02

    You can always try to save output of program1 to a file and then feed it into program2 and program3 input.

    program1 > temp; program2 < temp; program3 < temp;
    

提交回复
热议问题