paste命令-合并文件

paste [-s] [-d " "] [file1] [file2]
-s:将文件合并成行
-d:显示时的分割符
//1.txt
1 6
2 7
3 8
4 9
5 10

//2.txt
a f
b g
c f
d i
e j
paste -d " " 1.txt 2.txt

paster -s -d " " 1.txt 2.txt

猜你喜欢

转载自www.cnblogs.com/smallredness/p/11026924.html