From owner-freebsd-questions Wed Sep 26 17:22:43 2001 Delivered-To: freebsd-questions@freebsd.org Received: from dark4ce.com (dark4ce.com [194.109.74.197]) by hub.freebsd.org (Postfix) with ESMTP id 5E91137B40B for ; Wed, 26 Sep 2001 17:22:41 -0700 (PDT) Received: (from freebsd@localhost) by dark4ce.com (8.11.6/8.11.6) id f8R0MSQ83521; Thu, 27 Sep 2001 02:22:28 +0200 (CEST) (envelope-from freebsd) Date: Thu, 27 Sep 2001 02:22:28 +0200 From: Hanno Liem To: "Brian T.Schellenberger" Cc: David Strait , freebsd-questions@FreeBSD.ORG Subject: Re: DHCP going nuts? Message-ID: <20010927022228.A69708@dark4ce.com> References: <200109241221.f8OCLak22081@bmcgover-pc.cisco.com> <0109250100250B.03197@i8k.babbleon.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <0109250100250B.03197@i8k.babbleon.org>; from bts@babbleon.org on Tue, Sep 25, 2001 at 01:00:25AM -0400 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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