Created
November 9, 2010 11:00
-
-
Save andreimaxim/668964 to your computer and use it in GitHub Desktop.
Get the external IP and copy it into the system clipboard
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
| # IP Check | |
| function ip { | |
| local current_ip=`curl -s www.whatismyip.com/automation/n09230945.asp` | |
| echo "Current external IP address is: $current_ip" | |
| echo $current_ip | pbcopy | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment