[OT] elegance?

Willem Oldeman willem at king-pin.nl
Wed Jan 1 10:04:21 PST 2003


To fetch the dynamically assigned IP address from my interface I use the following:

ifconfig eth0 | grep "inet addr" | gawk -F" " '{ print $2 }' | gawk -F":" '{ print $2 }'

Does any of you gurus know a more elegant solution for this?


Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe lfs-support' in the subject header of the message

More information about the lfs-support mailing list