How do I iterate over a range of numbers defined by variables in Bash
first option:
END=1994
for ((i=1;i<=${END};i++)); do
echo ${i}
done
second option:
for i in {1..1994};do
echo ${i}
done
How do I iterate over a range of numbers defined by variables in Bash
first option:
END=1994
for ((i=1;i<=${END};i++)); do
echo ${i}
done
second option:
for i in {1..1994};do
echo ${i}
done