I have a file containing the following information I need to extract only the IP addresses from this file and move them to another file. Any suggestions?
vfiler1 running
ipspace: default-ipspace
IP address: 123.123.123.123 [unconfigured]
Path: /vol/palermo [/etc]
UUID: 4fa0d3d8-ecd6-11df-af94-00a09808463c
vfiler2 running
ipspace: default-ipspace
IP address: 12.114.121.88
Path: /vol/palermo [/etc]
UUID: 4fa0d3d8-ecd6-11df-af94-00a09808463c
vfilertest running
ipspace: default-ipspace
IP address: 192.168.3.21
Path: /vol/palermo [/etc]
UUID: 4fa0d3d8-ecd6-11df-af94-00a09808463c
I think this should suffice for finding IP's, but how to implement it?
--- You must not fight too often with one enemy, or you will teach him all your tricks of war.
vfiler1 running
ipspace: default-ipspace
IP address: 123.123.123.123 [unconfigured]
Path: /vol/palermo [/etc]
UUID: 4fa0d3d8-ecd6-11df-af94-00a09808463c
vfiler2 running
ipspace: default-ipspace
IP address: 12.114.121.88
Path: /vol/palermo [/etc]
UUID: 4fa0d3d8-ecd6-11df-af94-00a09808463c
vfilertest running
ipspace: default-ipspace
IP address: 192.168.3.21
Path: /vol/palermo [/etc]
UUID: 4fa0d3d8-ecd6-11df-af94-00a09808463c
I think this should suffice for finding IP's, but how to implement it?
Code:
[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}
--- You must not fight too often with one enemy, or you will teach him all your tricks of war.