我有一个文件,形如:
address 192.168.1.2 network root
aaaaaaaaaaaaaa
bbbbbbbbbbbb
cccccccccccc
address 192.168.3.5 network root
dddddddddd
eeeeeeeeeeeeeeee
address 192.168.6.7 network root
fffffffffffffff
gggggggggggggggggg
我想把包含ip的行除了ip保留,其他字符都删掉,变成如下这样,应该怎么处理?
192.168.1.2
aaaaaaaaaaaaaa
bbbbbbbbbbbb
cccccccccccc
192.168.3.5
dddddddddd
eeeeeeeeeeeeeeee
192.168.6.7
fffffffffffffff
gggggggggggggggggg
阅读(318) | 评论(0) | 转发(0) |