[root@controller01 ccx]# cat iptables.sh #!/bin/bash # $1是IP地址文件,格式为:IP 密码 cat $1|while read line do # 定义一个a数组 a=($line