I have gotten the following to work:
for i in {2..10} do echo \"output: $i\" done
It produces a bunch of lines of output: 2
output: 2
Try the arithmetic-expression version of for:
for
max=10 for (( i=2; i <= $max; ++i )) do echo "$i" done
This is available in most versions of bash, and should be Bourne shell (sh) compatible also.