在shell脚本如何传参?
更新:HHH   时间:2023-1-7


1、使用位置参数,如$0 $1 $2 ...
2、使用bash内置函数getopts
3、使用函数getopt

返回系统运维教程...