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: