Date: Tue, 27 Mar 2001 00:06:16 -0800 (PST) From: "Rodney W. Grimes" <freebsd@gndrsh.dnsmgr.net> To: johnny.dang@johnnydang.net (Johnny Dang) Cc: FREEBSD-IPFW@FreeBSD.ORG (FreeBSD IpFW) Subject: Re: Scripting with IPFW Message-ID: <200103270806.AAA90708@gndrsh.dnsmgr.net> In-Reply-To: <Pine.BSF.4.21.0103261533420.9772-100000@johnnydang.net> from Johnny Dang at "Mar 26, 2001 03:42:51 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
> 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 ?
^^ missing delim arg to -d option,
The above command has a syntax error in it is why it won't work :-).
Once corrected it works just fine on BSD:
ifconfig de0 | grep "inet" | cut -d " " -f2 | cut -d " " -f1
198.145.92.4
> 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 <Johnny.Dang@johnnydang.net>
> Senior Network Engineer/MCSE + Internet
>
>
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-ipfw" in the body of the message
>
--
Rod Grimes - KD7CAX @ CN85sl - (RWG25) rgrimes@gndrsh.dnsmgr.net
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ipfw" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200103270806.AAA90708>
