#!/bin/bash for i in ${cat $1};do ipcalc -cs $i if [ $? -eq 0 ];then echo $i else echo "ip address inlegal" fi
shell判断IP地址是否合法
原文:https://www.cnblogs.com/lalalaxixixi/p/11438611.html