IP=`wget -qO - http://www.whatsmyip.us/showipsimple.php \ | egrep -o '[[:digit:]]+.[[:digit:]]+.[[:digit:]]+.[[:digit:]]+'` echo $IP