Created
April 21, 2014 14:25
-
-
Save evgeny-goldin/11144260 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
myip=$(curl http://www.wheremyipaddress.com/ 2>/dev/null | grep 'IP Location' | cut -d'>' -f4 | cut -d'<' -f1 | cut -d',' -f3) | |
echo $myip | |
/usr/bin/osascript <<-EOF | |
tell application "System Events" | |
activate | |
display dialog "$myip" | |
end tell | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment