Pages

Monday, October 13, 2014

Print the IPv4 address of a given interface

$ ip a s eth0 | awk -F'[/ ]+' '/inet[^6]/{print $3}'

commandlinefu.com


by David Winterbottom (codeinthehole.com)






from All commands http://ift.tt/1sIavrc

No comments:

Post a Comment