Pages

Friday, October 10, 2014

Print the IPv4 address of a given interface

$ ip addr show enp3s0 | awk '/inet[^6]/{print $2}' | awk -F'/' '{print $1}'

commandlinefu.com


by David Winterbottom (codeinthehole.com)






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

No comments:

Post a Comment