shell-script-pt
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Ifconfig + Cut


From: Sérgio
Subject: Re: Ifconfig + Cut
Date: Mon, 08 Mar 2010 11:10:47 -0000
User-agent: eGroups-EW/0.82

# com ifconfig e awk ficou assim

 ifconfig eth0 | awk '/HW/ {print $7}'

--- Em address@hidden, Herbert Faleiros <herbert@...> escreveu
>
> On Sun, Mar 7, 2010 at 5:19 PM, Anderson Duarte
> <andersonrizada@...> 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
>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]