ipaddr=`/sbin/ifconfig | grep 'inet addr:' | grep -v '127.0.0.1' | cut -d : -f2 | awk '{print $1}'`
转载于:https://www.cnblogs.com/paul8339/p/4867525.html
ipaddr=`/sbin/ifconfig | grep 'inet addr:' | grep -v '127.0.0.1' | cut -d : -f2 | awk '{print $1}'`
转载于:https://www.cnblogs.com/paul8339/p/4867525.html