获取/查看本机出口ip curl http://members.3322.org/dyndns/getip
1
curl
ifconfig
.me
2
#或者
3
curl http://members.3322.org/dyndns/getip
或是
elinks www.123cha.com | awk -F '[][]' '/ip:/{print $4}'
摘自:http://blog.csdn.net/gebitan505/article/details/14448429