ifconfig筛选出IP

ifconfig     |grep inet    |awk -F: 'NR==1{print}'     |awk  '{print $2}'

猜你喜欢

转载自www.cnblogs.com/leon2659/p/10202189.html