439 shaares
38 private links
38 private links
Les redirections de fichiers.
Un bon tableau dans l'article, voici un petit résumé des 2 plus utiles (déclinés en nouveau fichier / append) à mes yeux.
command > output.txt 2>&1
: {POSIX} Puts both standard error and output to file named output.txtcommand >> output.txt 2>&1
: {POSIX} Appends both standard error and output to file called output.txtcommand 2>&1 \| tee output.txt
: {POSIX} Puts both standard output and error to file named output.txt while displaying output on terminalcommand 2>&1 \| tee -a output.txt
: {POSIX} Append both standard output and error to file named output.txt while displaying output on terminal