|
- #!/bin/sh
- IP="[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}"
- URL="http://www.nic.edu.cn/RS/ipstat/internalip/real.html"
- http_proxy=""
- curl -s $URL | sed -n "/\($IP\)[ ]*\($IP\)[ ]*\($IP\)/s//\1 \2 \3/p"
复制代码
这个脚本是来获取免费ip列表的。
这里,sed 进行替换,查找项为空。这里这么解释呢?
难道空的查找项默认的整一行吗? |
|