3.paste - merge lines of fileside
[dmtsai@study ~]$ paste [-d] file1 file2orm
-d :後面能夠接分隔字符。預設是以 [tab] 來分隔的!get
- :若是 file 部分寫成 - ,表示來自 standard input 的資料的意思。input
[root@localhost tmp]# paste join1 join2it
daemon:x:2:2:daemon daemon:x:2:
[root@localhost tmp]# paste -d : join1 join2
daemon:x:2:2:daemon:daemon:x:2:
[root@localhost tmp]# paste -s -d: join1 join2
adm:x:3:4:adm:bin:x:1:1:bin:daemon:x:2:2:daemon:lp:x:4:7:lp:root:x:0:0:root
adm:x:4::bin:x:1::daemon:x:2::root:x:0::sys:x:3: