while [[$a -ne 25]];do
first[$b]=${hat[$a]}
echo "${first[$b]}"
b=$((b+1))
a=$((a+5))
done
I'm trying to append values from the indicated index of one array to other, but it gives me an error with while loop....suggesting that [[0: not found [No such file or directory].......
In the hat array, it contains many values and for the name first array, I want to append value to it from the hat array at every 5 interval.......