Glab

shell编程:case语法格式

case "$1" in
1)
    echo 'one'
    ;;
[2-9])
    echo 'one more';;
*)
    echo 'other'
    ;;
esac

当前页面是本站的「Google AMP」版。查看和发表评论请点击:完整版 »