使用grep,sed显示ip地址
Hujiuxiang
・1 分钟阅读
显示ip地址
curl -s http://myip.dk | grep '<title>' | sed -e 's/<[^>]*>//g'
示例输出
Your IP address is: xxx.xxx.xxx.xxx