projects
/
shutils.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(initial)
Add printPublicIp.sh
author
Stefan Huber <shuber2@gmx.at>
Sun, 28 Oct 2012 17:07:11 +0000
(18:07 +0100)
committer
Stefan Huber <shuber2@gmx.at>
Sun, 28 Oct 2012 17:07:11 +0000
(18:07 +0100)
printPublicIp.sh
[new file with mode: 0755]
patch
|
blob
diff --git a/printPublicIp.sh
b/printPublicIp.sh
new file mode 100755
(executable)
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]+"