From what I've read on stack, here's one syntax :
iterator=0
while [ "$iterator" -lt 100 ]
do
printf "$iterator"
iterator=`expr $iterator + 1 `
done
Anybody cares to improve on this?
Aim is to make an iteration loop that would be most portable on posix systems.
[EDIT] just found this question which has very relevant answers: How do I iterate over a range of numbers defined by variables in Bash? but I'd like an answer here because I believe my question is more precise for future searches.