如何在shell中处理10个以上的参数
我在linux上使用bash shell,并希望在shell脚本中使用超过10个参数
使用大括号将其closures:
 echo "${10}" 
你也可以像这样迭代位置参数:
 for arg 
要么
 for arg in "$@" 
要么
 while (( $# > 0 )) # or [ $# -gt 0 ] do echo "$1" shift done 
您最多可以使用255个参数:
 ${255} 
我在linux上使用bash shell,并希望在shell脚本中使用超过10个参数
使用大括号将其closures:
 echo "${10}" 
你也可以像这样迭代位置参数:
 for arg 
要么
 for arg in "$@" 
要么
 while (( $# > 0 )) # or [ $# -gt 0 ] do echo "$1" shift done 
您最多可以使用255个参数:
 ${255}