for ((i=1;i<=10;i++)); do list_num = $(sed -n $i'p' /tmp/ip.txt |awk '{print $1}') list_ip = $(sed -n $i'p' /tmp/ip.txt |awk '{print $2}') if [ $list_num -gt 1000 ];then echo deny $list_ip';' >> /test/nginx_deny_ip.conf fi donenginx -s reload