- -d 指定两个文件合并后每行之间的分隔符,如:
- -d " " 以空格作为行之间的分隔符。
- -d "\t" 以tab键作为行之间的分隔符。
- -d "任意字符" 以"任意字符"作为行之间的分隔符。
- -s paste one file at a time instead of in parallel
paste -d " " a b > c
[root@localhost aaa]# more a
1
2
3
[root@localhost aaa]# more b
a
b
c
[root@localhost aaa]# paste a b
1 a
2 b
3 c
[root@localhost aaa]# paste -d " " a b
1 a
2 b
3 c
[root@localhost aaa]# paste -d ":" a b
1:a
2:b
3:c
[root@localhost aaa]# paste -s a b
1 2 3
a b c