linux shell命令之paste
作者:互联网
vi FILE1
Shanghai Jiaotong University
University of Toronto
Beijing University
Southest University
Victory University
vi FILE2
Shanghai
Toronto
Beijing
Nanjing
MelBourne
paste FILE1 FILE2
Shanghai Jiaotong University Shanghai
University of Toronto Toronto
Beijing University Beijing
Southest University Nanjing
Victory University MelBourne
paste FILE2 FILE1
Shanghai Shanghai Jiaotong University
Toronto University of Toronto
Beijing Beijing University
Nanjing Southest University
MelBourne Victory University
paste -d: FILE1 FILE2 :为域的分隔符
Shanghai Jiaotong University:Shanghai
University of Toronto:Toronto
Beijing University:Beijing
Southest University:Nanjing
Victory University:MelBourne
paste -d@ FILE1 FILE2 @为域的分隔符
Shanghai Jiaotong University@Shanghai
University of Toronto@Toronto
Beijing University@Beijing
Southest University@Nanjing
Victory University@MelBourne
paste -d: -s FILE1 FILE2 #-s按行粘贴,将file1的文件放到同一行,将file2的文件放到同一行
Shanghai Jiaotong University:University of Toronto:Beijing University:Southest University:Victory University
Shanghai:Toronto:Beijing:Nanjing:MelBourne
ls | paste -d" " - - - - #粘贴行每行显示4个文件
a.out append.sed AREACODE.db argv.awk
CARGO3.db count_word.sh FILE1 FILE2
findphone.awk insert.sed MapClearTest.class MapClearTest.java
modify.sed mysql_test.c output pass.awk
PROFESSOR.db scr2.awk scr.awk sever.c
sever.o sever.s sturecord TEACHER1.db
TEACHER.db TEACHER_HOBBY.db test1.c test1.cpp
test.c testNet.c test_sockpair test_sockpair.c
timer1 timer1.c timer2 timer2.c
timer3 timer3.cpp traverseFile traverseFile.c
WORDLIST
标签:Toronto,Beijing,FILE1,shell,FILE2,University,Shanghai,linux,paste 来源: https://www.cnblogs.com/zhudaheng123/p/14519987.html