Linux用命令过滤出ip地址

ip a|grep "global" | awk '{print $2}' |awk -F / '{print $1}'

  

原文地址:https://www.cnblogs.com/lucktomato/p/15115425.html