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 |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access