21 Nov
2000
21 Nov
'00
14:59
From: Jesse Marlin
Hi all,
Does anyone know a command or a little script giving you only the ip adress of your card ?
I mean by this : command ----> gives you only ---> aaa.bbb.ccc.ddd
#!/bin/bash extif="eth0" extip=$($ifconfig ${extif} | sed -ne '/addr:/{s/.*addr:\([^ ]*\).*/\1/;p;}') echo $ip
Thanks a lot,
Filip.
-- Powered by SUSE 7
vhf@skynet.be
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq