L'anti-sèche des redirections bash

Le 3 Novembre 2015
shell bash

Fusionner stdin avec stdout :

Rediriger dans un autre programe :

Rediriger dans stdout et dans un fichier

La commande tee duplique stdin dand stdout et dans un fichier. C'est très utile pour à la fois logger l'output d'un programe dans un fichier tout en surveillant ce qui sort.

Example: command | tee fichier.txt

Rediriger dans un fichier :