前置:理解curl grep awk的基本用法
练习题目:用grep awk 去查询公网IP,有网址http://ip.tool.chinaz.com/
<div class="IpMainWrap-right fr" id="rightinfo">
<dl class="IpMRig-tit">
<dt>您的IP</dt>
<dd class="fz24">183.240.211.15</dd>
<dt>来自</dt>
<dd>广东省深圳市 移动<a href="http://tool.chinaz.com/contact" target="_blank" class="col-blue02 pl5">(纠错)</a></dd>
<dt>操作系统</dt>
<dd>Windows 7</dd>
<dt>分辨率</dt>
<dd id="screen">1600*900</dd>