Skip to content

Instantly share code, notes, and snippets.

@aborilov
Last active August 29, 2015 14:01
Show Gist options
  • Select an option

  • Save aborilov/42c4749b34c8636c3123 to your computer and use it in GitHub Desktop.

Select an option

Save aborilov/42c4749b34c8636c3123 to your computer and use it in GitHub Desktop.
ifconfig
ifconfig | grep "inet addr" | grep -v 127.0.0.1 | awk -F ' ' '{print $2}' | awk -F ':' '{print $2}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment