I know how to use tee, of course, I have used it many times. However, it is normally something like:
du -h /some/directory | sort -h | tee census
While this works fine, it means I don't see anything until almost near the end, because sort needs to collect the whole list of output from du. What I'm thinking of could be good is if it is possible to do something along the lines of:
du - h | tee stderr | sort -h > census
where obviously stderr would be some notation to represent the real error output channel. I haven't found anything in the rather sparse documentation - is it it possible?