Linux用命令过滤出ip地址

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

  

posted @ 2021-08-08 17:15  lucky_tomato  阅读(497)  评论(0)    收藏  举报