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

tac

Some strings on this page have not been translated yet. You can help by translating them on Weblate.
v(uutils coreutils) 0.8.0
tac [OPTION]... [FICHIER]...

Écrit chaque fichier sur la sortie standard, la dernière ligne en premier.

Options

--before, -b

attacher le séparateur avant plutôt qu’après

--regex, -r

interpréter la séquence comme une expression régulière

--separator=<STRING>, -s <STRING>

utiliser CHAÎNE comme séparateur au lieu du saut de ligne

Examples

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

Concatenate specific files in reversed order:

tac {{path/to/file1 path/to/file2 ...}}

Display stdin in reversed order:

{{cat path/to/file}} | tac

Use a specific separator:

tac {{[-s|--separator]}} {{separator}} {{path/to/file1 path/to/file2 ...}}

Use a specific regex as a separator:

tac {{[-r|--regex]}} {{[-s|--separator]}} {{separator}} {{path/to/file1 path/to/file2 ...}}

Use a separator before each file:

tac {{[-b|--before]}} {{path/to/file1 path/to/file2 ...}}

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.