Last active
August 29, 2015 14:25
-
-
Save achauve/bd38a0d182bed3b9f272 to your computer and use it in GitHub Desktop.
Snippet to retrieve external IP
This file contains hidden or 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
CURRENT_IP = $(dig +short myip.opendns.com @resolver1.opendns.com) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment