From owner-freebsd-ipfw Mon Mar 26 12:49:23 2001 Delivered-To: freebsd-ipfw@freebsd.org Received: from johnnydang.net (cp160443-a.mtgmry1.md.home.com [65.1.242.45]) by hub.freebsd.org (Postfix) with ESMTP id E30A237B718 for ; Mon, 26 Mar 2001 12:49:15 -0800 (PST) (envelope-from johnny.dang@johnnydang.net) Received: from localhost (johnny_dang@localhost) by johnnydang.net (8.11.1/8.11.1) with ESMTP id f2QKgpu09782 for ; Mon, 26 Mar 2001 15:42:51 -0500 (EST) (envelope-from johnny.dang@johnnydang.net) X-Authentication-Warning: johnnydang.net: johnny_dang owned process doing -bs Date: Mon, 26 Mar 2001 15:42:51 -0500 (EST) From: Johnny Dang X-Sender: johnny_dang@johnnydang.net To: FreeBSD IpFW Subject: RE: Scripting with IPFW Message-ID: Organization: JOHNNYDANG.NET MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-ipfw@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Thanks you all (especially UNIX, SCANNER, Mikel, and Scott)... That is why this FreeBSD is great... This line will do it (I can now base on this and change to fix my need)... ifconfig de0 | grep "inet" | head -1 | awk '{print $2}' Thanks to you all... But why the orginal commands from Linux won't work on FreeBSD? ifconfig de0 | grep "inet" | cut -d -f2 | cut -d " " -f1 ? Just for curiosity? Btw, I download the new RedHAT Wolverines and Mandrake 8.0 and those GUI look like Lindows now. But my boss likes it !!!!! ++++++++++++++++++++++++++++++++++++++++++++++++++ "The instructions said to use Windows 98 or better, so I installed FreeBSD...It is working now!..." ++++++++++++++++++++++++++++++++++++++++++++++++++ Johnny Dang Senior Network Engineer/MCSE + Internet To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ipfw" in the body of the message