On Fri, Nov 02, 2007 at 10:59:04PM +0100, [EMAIL PROTECTED] wrote:
> >        onet=`ifconfig xl0 | grep "inet " | awk '{print $6}'`
> I'm not sure about this. Isn't the sixth word the broadcast address 
> (ending with .255)?

It's correct. I've been using this in my firewall file since FBSD
4.something. No problems. By default, awk uses spaces as column
delimiters. The line containing "inet " starts with eight spaces. Try it
and see what happens.
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to