This is similar to
seq, but portable.
seq does not exist in all systems and is not recommended today anymore. Other variations to emulate various uses with
# seq 1 2 10
for ((i=1; i<=10; i+=2)); do echo $i; done
# seq -w 5 10
for ((i=5; i<=10; ++i)); do printf '%02d\n' $i; done