paste
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
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.