#!/bin/sh ifconfig `gwif` | grep 'inet addr:' | sed -e "s/.* inet addr://" | awk '{ print $1 }'