|

楼主 |
发表于 2006-2-28 10:21:38
|
显示全部楼层
多谢楼上的2位,不过还有一点小问题现在
[root@dev wangchao]# cat zifu.txt
rhost=c-68-85-110-185.hsd1.de.comcast.net
rhost=h66-210-243-228.seed.net.tw
rhost=rav73-1-82-239-32-84.fbx.proxad.net
rhost=static-ip-217-172-181-15.inaddr.intergenia.de
[root@dev wangchao]# awk -F. '{print $1}' zifu.txt | awk -F- '{print $(NF-3)"."$(NF-2)"."$(NF-1)"."$NF}'
68.85.110.185
rhost=h66.210.243.228
82.239.32.84
217.172.181.15 |
|