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

paste

v(uutils coreutils) 0.8.0
paste [OPTIONS] [FICHIER]...

Écrire les lignes composées des lignes correspondantes séquentiellement de chaque FICHIER, séparées par des TABs, vers la sortie standard.

Options

--serial, -s

coller un fichier à la fois au lieu d’en parallèle

--delimiters=<LIST>, -d <LIST>

réutiliser les caractères de LISTE au lieu des TABs

--zero-terminated, -z

le délimiteur de ligne est NUL, pas une nouvelle ligne

Examples

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

Join all the lines into a single line, using TAB as delimiter:

paste {{[-s|--serial]}} {{path/to/file}}

Join all the lines into a single line, using the specified delimiter:

paste {{[-s|--serial]}} {{[-d|--delimiters]}} {{delimiter}} {{path/to/file}}

Merge two files side by side, each in its column, using TAB as delimiter:

paste {{path/to/file1}} {{path/to/file2}}

Merge two files side by side, each in its column, using the specified delimiter:

paste {{[-d|--delimiters]}} {{delimiter}} {{path/to/file1}} {{path/to/file2}}

Merge two files, with lines added alternatively:

paste {{[-d|--delimiters]}} '\n' {{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.