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

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

代码示例2
ss="abcdefghi"
my_array=( `echo $ss | grep -o . ` ) # split word into array

echo ${my_array[2]} 
give c

i=0
echo ${my_array[$i]}${my_array[$i+1]}xxx
give : abxxx