ifconfig -a | grep HWaddr | awk '{print $5}'
If your system output is non-English in this command, then it makes sense to run it this way.
LANG=C ifconfig -a | grep HWaddr | awk '{print $5}'
This is applicable to all solutions.
ifconfig -a | grep HWaddr | awk '{print $5}'
If your system output is non-English in this command, then it makes sense to run it this way.
LANG=C ifconfig -a | grep HWaddr | awk '{print $5}'
This is applicable to all solutions.