# com ifconfig e awk ficou assim ifconfig eth0 | awk '/HW/ {print $7}'
--- Em shell-script@yahoogrupos.com.br, Herbert Faleiros <herb...@...> escreveu > > On Sun, Mar 7, 2010 at 5:19 PM, Anderson Duarte > <andersonriz...@...> wrote: > > $ ifconfig eth0 | grep HW | cut -c48- > > 00:1e:68:d9:b6:34 > [...] > > Tem algo melhor que isso ? > > cat /sys/class/net/eth0/address > > -- > Herbert >