case

case 变量引用 in
PAT1)
分支1
;;
PAT2)
分支2
;;
...
*)
默认分支
;;
esac

posted @ 2022-03-07 22:08  45645+56  阅读(90)  评论(0)    收藏  举报