Linux用命令过滤出ip地址

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

  

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