- 论坛徽章:
- 0
|
我使用join时总不能得到正确的结果,肯请各位大虾指点一二。
cat job2
192.168.168.250 192.168.200.250
192.168.100.1 192.168.168.1
192.168.100.2 192.168.168.2
172.18.127.58 192.168.1.58
cat job1
192.168.168.250 console
192.168.100.1 ims001
192.168.100.2 ims002
172.12.127.58 www58
希望结果是:
192.168.168.250 192.168.200.250 console
192.168.100.1 192.168.168.1 ims001
192.168.100.2 192.168.168.2 ims002
172.18.127.58 192.168.1.58 www58
用man里的一个例子join -a 1 -a 2 -o 0,1.2,2.2 job1 job2总不对
192.168.168.250 console 192.168.200.250
192.168.100.1 192.168.168.1
192.168.100.2 192.168.168.2
172.18.127.58 192.168.1.58
如用 join job1 job2则只有一行
192.168.168.250 console 192.168.200.250 |
|