I want to loop over a sequence of numbers in a BASH script, but the bound values are not constants. I know this syntax:
for year in {2000..2010}; do
echo ${year}
done
But the values of 2000 and 2010 are changing in my case, so what I am doing right now is this:
for year in `seq ${yeari} ${yeare}`; do
echo ${year}
done
Is there a bash-native way to do the same, without using seq
?