On Thu, Dec 21, 2000 at 07:08:02PM -0600, Bob Hartung wrote:
> Hi,
>   Progress slow but sure.  Got everything running withh
> diald - not sure why it works but it does.  There was
> recently a message using grep, cut and ifconfig output to
> pluck a dynamically assigned IP address to use in
> firewalls.  Does someone have the message.  I can get it to
> xxx.xxx.xxx.xxx Bcast but can't figure out the last cut
> where the delimiter is a blank.


I didn't see that post, but this works:


ifconfig $WAN_IFACE | grep inet | cut -d : -f 2 | cut -d \  -f 1

-- 
Hal B
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]
--



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to