Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.
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

1 Answer 1

up vote 4 down vote accepted
some_source | tee >(sink_1) | sink_2

>( ) is process substitution.

share|improve this answer

Your Answer

 
discard

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.