Terminalausgabe wird zu einer Datei umgeleitet

bash myscript.sh 2>&1 | tee output.log
Coderunner