【1.0】shell获取IP地址 【1】获取IP地址 /sbin/ifconfig|grep -A1 -E "^eth0|em2"|grep "inet addr"|awk -F':' '{print $2}'|awk '{print $1}'