wget -Ufoo -qO- 'http://www.google.com/search?q=ip' | sed -n '/.*Your public IP address is [^0-9]*\([0-9.]*\).*/{s//\1/p;q;}'