Hi Jan, Try this in the command line: ifconfig | awk -F "HWaddr " '{ if ($2!="") print $2 }' If you have more than one NIC you can <grep> the ifconfig output with something like this: ifconfig | grep eth0 | awk -F "HWaddr " '{ if ($2!="") print $2 }' HTH, Pedro -----Original Message----- From: Jan Engelhardt [mailto:jengelh@linux01.gwdg.de] Sent: sexta-feira, 16 de Fevereiro de 2007 13:33 To: opensuse@opensuse.org Subject: [opensuse] Grabbing MAC address of interface Hello, now the question may seem simple ("how to grab the MAC address of a given interface"), but what is actually a "portable" way that does not potentially break when upgrading to a newer openSUSE? I could fiddle with `hwinfo --network` or try parse `ip l sh dev br0` output, but what's actually best? [Using sh.] Jan -- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org