Date: Thu, 27 Sep 2001 02:22:28 +0200 From: Hanno Liem <freebsd@dark4ce.com> To: "Brian T.Schellenberger" <bts@babbleon.org> Cc: David Strait <basilisk@umail.ucsb.edu>, freebsd-questions@FreeBSD.ORG Subject: Re: DHCP going nuts? Message-ID: <20010927022228.A69708@dark4ce.com> In-Reply-To: <0109250100250B.03197@i8k.babbleon.org>; from bts@babbleon.org on Tue, Sep 25, 2001 at 01:00:25AM -0400 References: <200109241221.f8OCLak22081@bmcgover-pc.cisco.com> <0109250100250B.03197@i8k.babbleon.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Sep 25, 2001 at 01:00:25AM -0400, Brian T.Schellenberger wrote: > Here's one way to do it in a script: > > set ipaddr = `ifconfig fxp0 | grep inet | tr '\t' ' ' | sed -e 's/^.*inet //' > -e 's/ .*$//'` > > I'm sure there are lots of other ways to do this as well. set ipaddr= `ifconfig | grep inet | head -1 | awk '{ print $2 }'` :-) Han To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010927022228.A69708>