scripts中的case....esac

语法要点:

case $var in

    "first var value")

    statements

    ;;

    "second var value")

    statements

    ;;

    *)

    statements

    ;;

esac

posted @ 2012-07-15 10:40  Cymbidium  阅读(108)  评论(0)    收藏  举报