May 2017
Beginner
552 pages
28h 47m
English
The paste command performs column-wise concatenation:
$ paste file1 file2 file3 ...
Here is an example:
$ cat file1.txt
1
2
3
4
5
$ cat file2.txt
slynux
gnu
bash
hack
$ paste file1.txt file2.txt
1 slynux
2 gnu
3 bash
4 hack
5
The default delimiter is tab. We can specify the delimiter with -d:
$ paste file1.txt file2.txt -d ","
1,slynux
2,gnu
3,bash
4,hack
5,