Skip to content

Instantly share code, notes, and snippets.

@jdlich
Created July 25, 2011 20:18
Show Gist options
  • Save jdlich/1105085 to your computer and use it in GitHub Desktop.
Save jdlich/1105085 to your computer and use it in GitHub Desktop.
ifconfig en0 | ruby -ne 'print $_[/inet\s((\d|\.)+)/,1]'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment