shell-流程控制

一、if 条件 then 命令 elif 条件 then 命令 ... else 命令 fi[root@vm-paas scwyfy]# cat ifelifelse.sh #!/bin/bash read -p "请输入考试成绩 " s if ((${s} >= 0 && ${s} < 60))
posted @ 2024-05-10 21:58  scwyfy  阅读(3)  评论(0编辑  收藏  举报