I'm struggling to wrap my ahead around the tee/mtee command and redirection to fulfill the following goals: Send stdout and stderr BOTH to a separate file. Show ONLY stderr into the console. The ...
I want to write stdout to a file but also prints stdout and stderr. I tried using tee: prog | tee stdout.txt but this causes the printed stderr and stdout to be interleaved incorrectly, i.e. if the ...