curl通过ip138.com查询IP地址归属地:

[root@t6 ~]# curl -s "http://ip138.com/ips138.asp?ip=112.234.114.231&action=2"|grep "<ul class=\"ul1\"><li>" a|awk -F'[<>]' '{print $7}'
本站主数据:山东省临沂市 联通