Need help from the sed gods

Oliver Brakmann obrakmann at gmx.net
Sun Sep 22 11:17:39 PDT 2002


Timothy Bauscher wrote...
>> uhmm, forget about it, I was blind for a moment or two :-/
>> I can simply get the information from the ifconfig.$interface
>> file. D'oh!
> 
> Hehe. Much easier.
> 
> sed -n '/IP/s/.*=//p' ifconfig.eth0

Nope. Even easier:

source ifconfig.eth0
echo $IP

;-)))

But thanks to all your replies, I now know that I have to
take a look at the cut and tr commands. Thanks!

Bye,
Oliver
-- 
NP: Dreadful Shadows - A sea of tears
-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe lfs-chat' in the subject header of the message



More information about the lfs-chat mailing list