📅  最后修改于: 2022-03-11 14:51:31.014000             🧑  作者: Mango
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