From 186270931fd019a216884bdc0ef2fc93ae3cb81e Mon Sep 17 00:00:00 2001 From: Stefan Huber Date: Sun, 28 Oct 2012 18:07:11 +0100 Subject: [PATCH] Add printPublicIp.sh --- printPublicIp.sh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 printPublicIp.sh 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]+" -- 2.39.5