Name
paste — stdin stdout - file -- opt --help --version
Synopsis
paste [options
] [files
]
The paste
command is the
opposite of cut
: it treats
several files as vertical columns and combines them on standard
output:
$ cat letters A B C $ cat numbers 1 2 3 4 5 $ paste numbers letters 1 A 2 B 3 C 4 5 $ paste letters numbers A 1 B 2 C 3 4 5
Useful options
|
Use the given
|
| Transpose the rows and columns of output: $ paste -s letters numbers A B C 1 2 3 4 5 |
Get Linux Pocket Guide, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.