shell中的case语句

 

case语法:

case $arg in

  arg1)

  语句1

  ;;

  arg2)

  语句2

  ;;

  *)

  help 语句

  ;;

esac

 

eg:

 

eg:

 

posted @ 2016-10-05 10:21  xuanhui  阅读(349)  评论(0编辑  收藏  举报