摘要: [root@10-13-9-63 ~]# ifconfig eth0 | grep -Eo '([0-9]{1,3}.){3}[0-9]{1,3}' | head -1 10.13.9.63 [0-9]数字范围,因为IP表示为XXX三位数字组成,{1,3}就表示数字范围。([0-9]{1,3}.)引 阅读全文
posted @ 2021-04-25 01:11 湘北10# 阅读(164) 评论(0) 推荐(0) 编辑