mac osx 获取内网ip的方法
摘要:
(1) ping -c 1 $(hostname) | grep -m 1 -oP '(\d+\.)+\d+' # ping selfhost and catch the first matched ip (2) host $(hostname) | grep -oP '(\d+\.)+\d+' ... 阅读全文
posted @ 2011-12-08 10:07 Wind__Fantasy 阅读(548) 评论(0) 推荐(0) 编辑