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

cat

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

Concaténer les FICHIER(s), ou l’entrée standard, vers la sortie standard Si aucun FICHIER, ou quand FICHIER est -, lire l’entrée standard.

Options

--show-all, -A

équivalent à -vET

--number-nonblank, -b

numéroter les lignes de sortie non vides, remplace -n

-e

équivalent à -vE

--show-ends, -E

afficher $ à la fin de chaque ligne

--number, -n

numéroter toutes les lignes de sortie

--squeeze-blank, -s

supprimer les lignes vides répétées en sortie

-t

équivalent à -vT

--show-tabs, -T

afficher les caractères TAB comme ^I

--show-nonprinting, -v

utiliser la notation ^ et M-, sauf pour LF (\n) et TAB (\t)

-u

(ignoré)

Examples

Affiche le contenu d’un fichier sur la sortie standard :

cat {{chemin/vers/fichier}}

Concatène le contenu de plusieurs fichiers vers le fichier de destination :

cat {{chemin/vers/fichier1 chemin/vers/fichier2 ...}} > {{chemin/vers/fichier_de_destination}}

Ajoute le contenu d’un ficher à la fin du fichier de destination :

cat {{chemin/vers/fichier1 chemin/vers/fichier2 ...}} >> {{chemin/vers/fichier_de_destination}}

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.