How to make a pipe loop in bash

前端 未结 7 1529
半阙折子戏
半阙折子戏 2020-12-05 03:25

Assume that I have programs P0, P1, ...P(n-1) for some n > 0. How can I easily redirect the output of program Pi

7条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-05 03:37

    I doubt sh/bash can do it. ZSH would be a better bet, with its MULTIOS and coproc features.

提交回复
热议问题