Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top
some_source | (tee /dev/stderr | sink_1) 2>&1 | sink_2

Seems to fail.

How to do it right without of any temporaries?

share|improve this question
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
up vote 4 down vote accepted
some_source | tee >(sink_1) | sink_2

>( ) is process substitution.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.