Fork me on GitHub

centos 7 中如何提取IP地址

 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])"

 

posted @   Alex-Lzy  阅读(592)  评论(0编辑  收藏  举报
点击右上角即可分享
微信分享提示