Created
August 31, 2013 09:41
-
-
Save oleksiyp/6397235 to your computer and use it in GitHub Desktop.
Cool script to get "My public IP"
http://serverfault.com/questions/89114/finding-the-public-ip-address-in-a-shell-script
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 | |
dig @208.67.222.220 myip.opendns.com | grep -A 1 "ANSWER SECTION" | tail -n 1 | cut -f 5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment