4
some_source | (tee /dev/stderr | sink_1) 2>&1 | sink_2

Seems to fail.

How to do it right without of any temporaries?

Vi.
  • 16,755
  • 32
  • 111
  • 189
  • 1
    In what way is it failing. I get the same result for your example, grawity's answer and for `some_source | { tee /dev/stderr | sink_1; } 2>&1 | sink_2` – Dennis Williamson Mar 15 '11 at 19:56

1 Answers1

5
some_source | tee >(sink_1) | sink_2

>( ) is process substitution.

u1686_grawity
  • 426,297
  • 64
  • 894
  • 966