case.ksh
来自「Solaris环境下Shell编程编程」· KSH 代码 · 共 22 行
KSH
22 行
#!/bin/ksh# Script name: case.kshmth=$(date +%m)case $mth in02) print "February usually has 28 days." print "If it is a leap year, it has 29 days." ;;04|06|09|11) print "The current month has 30 days." ;; *) print "The current month has 31 days." ;;esac
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?