📜  bash 打印数组 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:12.346000             🧑  作者: Mango

代码示例3
echo  ${resnew[0]} - first element
echo  ${resnew[1]}  - second element 


echo last : ${resnew[$(($res_len -1))]}  last element

echo last : ${resnew[        $(($res_len -1))                              ]}  last element
             ^resnew_array[  ^get value from varible by solving $res_len-1  ^array close