Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

tee

v(uutils coreutils) 0.8.0
tee [OPTION]... [FICHIER]...

Copier l’entrée standard vers chaque FICHIER, et aussi vers la sortie standard.

Options

--help, -h

Afficher l’aide

--append, -a

ajouter aux FICHIERs donnés, ne pas écraser

--ignore-interrupts, -i

ignorer les signaux d’interruption (ignoré sur les plateformes non-Unix)

-p

définir le comportement d’erreur d’écriture (ignoré sur les plateformes non-Unix)

--output-error

définir le comportement d’erreur d’écriture

Si un FICHIER est -, il fait référence à un fichier nommé - .

Examples

The examples have not been translated yet and are shown in English. You can help by translating them on tldr-pages.

Copy stdin to each file, and also to stdout:

echo "example" | tee {{path/to/file}}

Append to the given files, do not overwrite:

echo "example" | tee {{[-a|--append]}} {{path/to/file}}

Print stdin to the terminal, and also pipe it into another program for further processing:

echo "example" | tee {{/dev/tty}} | {{xargs printf "[%s]"}}

Create a directory called “example”, count the number of characters in “example”, and write “example” to the terminal:

echo "example" | tee >(xargs mkdir) >(wc {{[-c|--bytes]}})

The examples are provided by the tldr-pages project under the CC BY 4.0 License.

Please note that, as uutils is a work in progress, some examples might fail.