Skip to content

Instantly share code, notes, and snippets.

@jkonowitch
Created August 8, 2014 15:07
Show Gist options
  • Save jkonowitch/935d55d638d078be0dce to your computer and use it in GitHub Desktop.
Save jkonowitch/935d55d638d078be0dce 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