Redirection de sortie du terminal vers un fichier
bash myscript.sh 2>&1 | tee output.log
Coderunner
bash myscript.sh 2>&1 | tee output.log