Skip to content

Instantly share code, notes, and snippets.

@dongsu
Created February 7, 2014 20:28
Show Gist options
  • Save dongsu/8871101 to your computer and use it in GitHub Desktop.
Save dongsu/8871101 to your computer and use it in GitHub Desktop.
ifconfig | sed -En 's/127.0.0.1//;s/.*inet (addr:)?(([0-9]*\.){3}[0-9]*).*/\2/p'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment