This paste is going to be a lot easier than join ! Relative to the join must be more than two files of data dependency, paste directly " put two lines together, and the middle of the [tab] key separated " just! Simple way to use:
[email protected] ~]# paste [-d] file1 file2 options and Parameters:-D: The delimiter character can be followed. The default is delimited by [tab]! -: IffilePart written-that represents the meaning of the data from standard input. Example one: to/etc/passwdand/etc/shadow with the same line [email protected]~]# paste/etc/passwd/etc/shadowbin:x:1:1: Bin:/bin:/sbin/nologin bin:*:14126:0:99999:7: ::d aemon:x:2:2:d Aemon:/sbin:/sbin/nologin daemon:*:14126:0:99999:7:: : adm:x:3:4: Adm:/var/adm:/sbin/nologin adm:*:14126:0:99999:7::: # Note Oh! The middle of the same line is separated by the [tab] key! Example two: the first/etc/group read out (withCat), and then stick together with the example! And only the first three lines are removed [[email protected]~]#Cat/etc/group|paste/etc/passwd/etc/shadow-|Head-N3# The focus of this example is on that-The use! That stuff always stands for stdin Oh!
Reference:http://vbird.dic.ksu.edu.tw/linux_basic/0320bash.php#paste