I want to for example divide all integers from 1 to 5 by 8 and put them in an array. I was thinking something similar to the code below but I'm sure it's wrong and dirty:
COUNTER=0
until [ $COUNTER -lt 8 ]; do
${steps[$COUNTER]}=1+(5-1)/8*$COUNTER
let COUNTER+=1
done
Is there anyway to do this cleanly if my code is correct at all?