shell 基础

/***************************** 目录 *************************/

1,流程控制

 

 

 /*************************** 1流程控制 ******************/

  (1) case

   case ${1} in

    "hello")
	  echo "Hello, how are you ?"
	  ;;
    "")
	  echo "You MUST input parameters, ex> {${0} someword}"
	  ;;
   *)    #其实就相当于万用字元,0~无穷多个任意字元之意!
	  echo "Usage ${0} {hello}"
	  ;;
  esac
posted @ 2018-01-12 01:12  不拨牙  阅读(99)  评论(0编辑  收藏  举报