标签:shell
1.ifconfig eth0 | grep inet |sed ‘s/^.*addr://g‘ | sed ‘s/Bcast.*$//g‘
2.ifconfig eth0 | grep inet | awk -F‘ ‘ ‘{print $2}‘ | awk -F‘:‘ ‘{print $2}‘
本文出自 “飞奔的小GUI” 博客,请务必保留此出处http://9237101.blog.51cto.com/9227101/1922928
标签:shell
原文地址:http://9237101.blog.51cto.com/9227101/1922928