Linux shell getopts 解析命令行参数 getopts 语法getopts 选项字符串 名称 [ 参数 ...] 示例1(有前置冒号): while getopts \":hdo:\" optname;do......do...