只获取linux ip的命令

ifconfig eth0 | awk '/inet addr/{print substr($2,6)}'
posted @ 2015-12-22 17:39  邱明成  阅读(348)  评论(0)    收藏  举报