天晴如许

在网站数据采集和网站分析行业,让数据采集标准化和自动化;由海量日志基于hadoop分析到实时分析;提供Web Analytics工具发挥数据运营威力。

导航

值得细读的博客

围绕“面试”、“算法”、“编程”三个主题:

http://blog.csdn.net/v_JULY_v


shell方面总结的比较好:

http://www.cnblogs.com/stephen-liu74/archive/2011/11/01/2202027.html


程序人生方面:

http://syc001.iteye.com/blog/1297741

http://www.iteye.com/topic/1118807

CMD命令大全

http://daojin.iteye.com/blog/1300709

http://www.iteye.com/topic/1118798

http://java-mzd.iteye.com/blog/848635

http://www.iteye.com/topic/1118707

http://robbin.iteye.com/

http://www.tetx.com/program/htm/tetx/blog/list/tag_name/wget/index.htm


如何获取我的外部 ip?

http://www.tetx.com/program/htm/tetx/blog/list/tag_name/wget/index.htm

简单至极:

URL="http://whatismyip.org/"

curl -s $URL || wget -qO- $URL || lynx -dump $URL || w3m -dump $URL

当然,也有复杂的办法:

w3m -dump http://www.ip138.com/ip2city.asp|awk -F"[" '{print $2}'|awk -F"]" '{print $1}

或者:

w3m -dump http://myip.cn|egrep '[0-9]\.[0-9]+\.[0-9]+\.[0-9]+'|tr -d "您的IP地址: "

w3m -dump http://myip.cn|egrep '[0-9]\.[0-9]+\.[0-9]+\.[0-9]+'|awk '{print $2}'


posted on 2011-11-27 23:55  天晴如许  阅读(162)  评论(0编辑  收藏  举报