I would like something that works:
cat a > b
prog1 < b
prog2 < b
without creating a temporary file b.
If I had only one program, I could use the channel:
cat a | prog1
I am wondering if the shell supports syntax for supporting something like:
cat a (|prog1) (|prog2)
Or is there a handy utility that can help? Sort of:
cat a | fanout prog1 prog2
source
share