If I want to print out the contents from the 13 element till the second last element of an array and I don't know how long the array is, is this how it would be done with BASH?
for array_element in `seq 13 $(({myarray[@]-1))`
do
echo ${myarray[array_element]}
done
$(({myarray[@]-1))$(({myarray[@]-1))to$((${#myarray[@]}-1))