标题:shell获取ip地址 出处:沧海一粟 时间:Tue, 28 Dec 2010 16:28:13 +0000 作者:jed 地址:http://www.dzhope.com/post/723/ 内容: ip=$(grep $(hostname) /etc/hosts| awk '{print $1}') Generated by Bo-blog 2.1.1 Release