摘要: shell脚本ip校验 1 IP=$1 2 VALID_CHECK=$(echo $IP|awk -F. '$1<=255&&$2<=255&&$3<=255&&$4<=255{print "yes"}') 3 echo $VALID_CHECK 4 5 if echo $IP|grep -E "^ 阅读全文
posted @ 2021-06-03 10:44 Leonardo-li 阅读(173) 评论(0) 推荐(0) 编辑