摘要:
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 @ 2019-11-07 10:35
Alex-Lzy
阅读(597)
评论(0)
推荐(0)
摘要:
ip=123.23.2.32; [[ $ip =~ ^(([1-9]?[0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$ ]] && echo legal ip || 阅读全文
posted @ 2019-11-07 10:28
Alex-Lzy
阅读(224)
评论(0)
推荐(0)

浙公网安备 33010602011771号