Assume that I have programs P0, P1, ...P(n-1) for some n > 0. How can I easily redirect the output of program Pi
P0
P1
P(n-1)
n > 0
Pi
I doubt sh/bash can do it. ZSH would be a better bet, with its MULTIOS and coproc features.