Shell 传到参数获取一部分
Shell 传入参数获取一部分
cmds=${@:2:$((${#@}))}#2..最后 heads=${@:1:$((${#@} - 1))}#1..倒数第二 tail=${@:${#@}}#最后一个
以上是在Bash中的