In bash when I type
echo {0..10}
I get
0 1 2 3 4 5 6 7 8 9 10
How can I use a variable instead of the upper bound? When I try
a=4
echo {0..$a}
I get
{0..4}
How can I fix that so I get the same as the first example?
Figured it out.
echo $(seq 1 $a)