Wednesday, September 07, 2022

[mlpmkrdk] bash pipeline peek

foo | tee >(cat 1>&2) | bar

the tee command uses process substitution to eavesdrop on the communication from foo to bar, printing it out to stderr.

No comments :