ifconfig |grep -Eo "(([1-9)?[0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])"
centos 7 中如何提取IP地址
猜你喜欢
转载自www.cnblogs.com/alexlv/p/11810528.html
周排行
ifconfig |grep -Eo "(([1-9)?[0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])"