Created
February 11, 2015 01:13
-
-
Save jtickle/d5c324a9dd687845ad64 to your computer and use it in GitHub Desktop.
Parses 'ip addr' and shows you what you are really looking for - IP per interface.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ip -o -4 addr | awk '/.* ([a-zA-Z0-9]+)/ {print $2 "\t" $4}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment