case命令

case $var in
    pattern1)
        commands
     ;; pattern) commands
     ;; esac

 

posted @ 2020-06-06 12:31  天凉好个秋秋  阅读(135)  评论(0编辑  收藏  举报