摘要:
#!/bin/bashls /usr/local/nginx/sbin/nginx >/dev/null 2>&1if [ $? != 0 ]then echo "没有发现源码版nginx,是否需要安装"read -p "yes / no :" bif [ $b = yes ]then echo " 阅读全文
posted @ 2021-08-26 15:25
于洪祥
阅读(334)
评论(0)
推荐(0)
摘要:
ption=100#初始化一个条件 echo -e "\n"echo ' yy Options for commands to excute yy 'echo ' 0. 退出脚本' echo ' 1. 配置动态ip'echo ' 2. 配置静态ip'echo ' 3. 删除指定连接'echo ' 4 阅读全文
posted @ 2021-08-26 15:24
于洪祥
阅读(503)
评论(0)
推荐(0)
摘要:
欧尔翻到之前刚学shell的时候模仿北京公交车上下车刷卡制度写的一个小脚本 #!/bin/bashread -p "上车站号:" UPread -p "下车站号:" DNread -p "公交卡余额:" MONEYALL=3.5if [ -z $UP ]&&[ -z $DN ] then echo 阅读全文
posted @ 2021-08-26 15:21
于洪祥
阅读(78)
评论(0)
推荐(0)