[root@uhzc003297 ~]# paste --h
用法:paste [选项]... [文件]...
Write lines consisting of the sequentially corresponding lines from
each FILE, separated by TABs, to standard output.
With no FILE, or when FILE is -, read standard input.
长选项必须用的参数在使用短选项时也是必须的。
-d, --delimiters=LIST reuse characters from LIST instead of TABs
-s, --serial paste one file at a time instead of in parallel
--help 显示此帮助信息并退出
--version 输出版本信息并退出
########################
[root@uhzc003297 ~]# cat a
123
456
789
[root@uhzc003297 ~]# cat b
321
654
987
[root@uhzc003297 ~]# cat a b
123
456
789
321
654
987
[root@uhzc003297 ~]# paste a b
123 321
456 654
789 987
############################
[root@uhzc003297 ~]# paste -d a b
321
654
987
[root@uhzc003297 ~]# paste -s a b
123 456 789
321 654 987
#########################
转载于:https://blog.51cto.com/qinyinbolan/1130702