From: Stefan Huber Date: Sun, 28 Oct 2012 17:07:11 +0000 (+0100) Subject: Add printPublicIp.sh X-Git-Url: https://git.sthu.org/?a=commitdiff_plain;h=186270931fd019a216884bdc0ef2fc93ae3cb81e;p=shutils.git Add printPublicIp.sh --- 186270931fd019a216884bdc0ef2fc93ae3cb81e diff --git a/printPublicIp.sh b/printPublicIp.sh new file mode 100755 index 0000000..68dcf64 --- /dev/null +++ b/printPublicIp.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +wget -q -O - checkip.dyndns.org|sed -e 's/.*Current IP Address: //' -e 's/<.*$//' + +#curl -A "Mozilla Firefox" $@ "http://automation.whatismyip.com/n09230945.asp" 2> /dev/null + #| grep -E "[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+"