What is the best way to extract the MAC address from ifconfig\'s output?
ifconfig
Sample output:
bash-3.00# ifconfig eth0 eth0 Link
Nice and quick one:
ifconfig eth0 | grep HWaddr | cut -d ' ' -f 11