摘要: 在某些情况下,需要求子网 #!/bin/bash get_ipgate(){ #获取ip地址 ip=$(echo $1 | cut -d '/' -f1) #获取子网掩码 mask=$(echo $1 | cut -d '/' -f2) #ip地址转换整数 ipgate_int=$(echo $ip 阅读全文
posted @ 2022-12-26 14:06 竹蜻蜓vYv 阅读(429) 评论(0) 推荐(0) 编辑