Skip to content

Instantly share code, notes, and snippets.

@andreimaxim
Created November 9, 2010 11:00
Show Gist options
  • Select an option

  • Save andreimaxim/668964 to your computer and use it in GitHub Desktop.

Select an option

Save andreimaxim/668964 to your computer and use it in GitHub Desktop.
Get the external IP and copy it into the system clipboard
# 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