Re: Adresse IP temporaire ?
On Wed, Mar 28, 2001 at 01:28:49AM +0200, Laurent Vallar - aka Val wrote:
> /sbin/ifconfig eth0 | grep inet | awk '{ print $2 }' | awk -F: '{print $2}'
> (à coup de awk)
Un seul awk suffit :
ifconfig eth0 | awk '/inet/ {gsub(/addr:/,""); print $2}'
Olivier
--
Behold, the fool saith, "Put not all thine eggs in the one basket"--which is
but a manner of saying, "Scatter your money and your attention;" but the wise
man saith, "Put all your eggs in the one basket and--WATCH THAT BASKET."
-- Mark Twain, "Pudd'nhead Wilson's Calendar"
Reply to: