#!/bin/bash ip=`curl -s http://checkip.dyndns.org | sed 's/[a-zA-Z/<> :]//g'` echo "$ip"