摘要: 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,判断某个文件是不是存 阅读全文
posted @ 2018-12-06 17:22 汉哥行 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 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/,+ 阅读全文
posted @ 2018-12-04 14:56 汉哥行 阅读(389) 评论(1) 推荐(0) 编辑