Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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

>( ) is process substitution.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .