UNIXETC
Posts
ETC
README
$ ip addr | awk '/state UP/ {print $2}' | sed 's/.$//'
输出结果
eth0
eth1
#Linux
#Ip
#Awk
#Sed