标签:sp on bs ad linux as nbsp ip ca
//通过命令获取mac地址
ifconfig eth0 |grep HWaddr | awk‘{print $5}‘
//获取IP地址
ifconfig eth0 | grep Bcast | awk ‘{print $2}‘ | awk -F ‘:‘ ‘{print $2}‘
标签:sp on bs ad linux as nbsp ip ca
原文地址:http://www.cnblogs.com/Footprint-team/p/4128792.html