Need help from the sed gods

Oliver Brakmann obrakmann at
Sun Sep 22 05:12:21 PDT 2002

Hi group,

I need a little help:

I want to extract the IP address of a running network interface
from the output of 'ifconfig $interface'.
I get as far as 'ifconfig $interface | head -2 | tail -1 | sed ...'

Can anybody tell me which sed expression I have to use to get
the IP address?

A big thanks in advance,
NP: Deftones - My own summer (Shove it)
Unsubscribe: send email to listar at
and put 'unsubscribe lfs-chat' in the subject header of the message

More information about the lfs-chat mailing list