shell case结构条件句

版权声明:silly8543 https://blog.csdn.net/cen50958/article/details/90107251
  • 语法
    case "字符串变量" in
      值1|值2)
      	指令1
    ;;
      值3)
        指令2
    ;;
     *)
      指令n
    esac
    

猜你喜欢

转载自blog.csdn.net/cen50958/article/details/90107251
今日推荐