标签:div pre sed ddr eth ifconfig net grep css
ifconfig eth0|grep " inet add"|cut -d":" -f2|cut -d " " -f1 ifconfig eth0|grep " inet add"|awk -F":" ‘{print $2}‘|awk -F " " ‘{print $1}‘ ifconfig eth0|awk -F "[:B]" ‘NR==2{print $2}‘ ifconfig eth0|sed -n ‘/inet addr/p‘|sed ‘s#.*addr:##g‘|sed ‘s# Bc.*$##g‘ ifconfig eth0|sed -n ‘s#^.*addr:\(.*\) Bca.*$#\1#gp‘
标签:div pre sed ddr eth ifconfig net grep css
原文地址:http://www.cnblogs.com/Dev0ps/p/7843402.html