Skip to content

Instantly share code, notes, and snippets.

@htr
Created March 28, 2011 00:54
Show Gist options
  • Save htr/889826 to your computer and use it in GitHub Desktop.
Save htr/889826 to your computer and use it in GitHub Desktop.
os x ip addresses
ifconfig | awk '$2 ~ /flags=8../ {ifname=$1 } /inet\ / && ifname !~ /lo0|vmnet/ {print ifname " "$2}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment