I have a file url that outputs like:
//
data = {
'ip': '',
'server_ip': '',
'router_name': 'Banana Hammock',
'wan_domain': '',
'wan_gateway': '74.125.224.32',
'wan_gateway_get': '74.125.224.32',
'wan_get_domain': 'isp.example.com',
'wan_hostname': 'MumbaVille',
'wan_hwaddr': '00:00:00:00:00:00',
I’m using this command to get wan_gateway_get:
curl -k http://mumbarouter.com/get.asp?statits | awk '/wan_gateway_get/ {print $2}'
which outputs:
'74.125.224.32',
=
How can I make it output just:
74.125.224.32
Thank you, and happy mumba!
Make it easy on yourself … cause breaking up is so very easy to do: