摘要:
12,for的法 #!/bin/bashfor i in `seq 20`doecho $i done 13,if的用法 #!/bin/bashs=$1if [ $s -le '3' ];thenecho '输入的数字小于3'elseecho '输入的数字大于等于3'fi 14,判断某个文件是不是存 阅读全文
摘要:
1,keepalive剔除后端服务 #!/bin/bash #行数请自定义,默认8行 if [ X$2 == X ];then echo "error: IP null" read exit fi case $1 in del) sed -i '/real_server.*'$2'.*8888/,+ 阅读全文