]> git.sthu.org Git - shutils.git/commitdiff
Add printPublicIp.sh
authorStefan Huber <shuber2@gmx.at>
Sun, 28 Oct 2012 17:07:11 +0000 (18:07 +0100)
committerStefan Huber <shuber2@gmx.at>
Sun, 28 Oct 2012 17:07:11 +0000 (18:07 +0100)
printPublicIp.sh [new file with mode: 0755]

diff --git a/printPublicIp.sh b/printPublicIp.sh
new file mode 100755 (executable)
index 0000000..68dcf64
--- /dev/null
@@ -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]+"