快速获取ip地址
ifconfig
ifconfig eth0 | awk NR==2 | awk '{print $2}'
快速获取mac地址
ifconfig
ifconfig eth0 | awk NR==4 | awk '{print $4}'
(说明:NR和FNR 在此处作
快速获取ip地址
ifconfig
ifconfig eth0 | awk NR==2 | awk '{print $2}'
快速获取mac地址
ifconfig
ifconfig eth0 | awk NR==4 | awk '{print $4}'
(说明:NR和FNR 在此处作