by usefulcat · 2y ago · 0 comments
|& is your friend:
g++ foo.cc |& less
g++ foo.cpp 2>&1 | tee ./log
g++ foo.cpp |& tee ./log