Unixでstderrだけをパイプに流すことはできますか。

$ command >/dev/null 2| tee foo.txt # こんなことがしたい

使っているのはbashです。