CASE语法格式备忘
case $variable-name in pattern1) command1 ... .... commandN ;; pattern2|pattern3|pattern4) command1 ... .... commandN ;; [a-z]) command1 ... .... commandN ;; *) command1 ... .... commandN ;; esac
2024-03-18 13:19:16
CASE语法格式备忘
case $variable-name in pattern1) command1 ... .... commandN ;; pattern2|pattern3|pattern4) command1 ... .... commandN ;; [a-z]) command1 ... .... commandN ;; *) command1 ... .... commandN ;; esac