shell编程getopts结合case完成选择功能实战_getopts和case-CSDN博客

网站介绍:文章浏览阅读148次。vim cash.sh:whilegetopts":s:e:"optdocase$optin"s")start_month=$OPTARG;; "e")end_month=$OPTARG;;":")info="novalueforexpectedoption"\?)info="unexpectedoption"*)info="default";;..._getopts和case