Skip to content

Instantly share code, notes, and snippets.

@arya
Created January 31, 2009 00:23
Show Gist options
  • Save arya/55369 to your computer and use it in GitHub Desktop.
Save arya/55369 to your computer and use it in GitHub Desktop.
/sbin/ifconfig | grep -Eo "10\.20\.[0-9]{1,3}\.[0-9]{1,3}" | grep -vE "^(255|127)" | sort | uniq | xargs -I{} resolveip {} | awk '{print $6}' | grep -vE "(localhost)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment