I have this code that works:
$ array=( {100..300..100} )
$ for k in ${array[@]} ; do echo $k ; done
100
200
300
I want to parametrize the start and end points (and also the increment, because why not?) I tried this:
$ low=100
$ high=300
$ incr=100
$ array=( {$low..$high..$incr} )
But it didn't work:
$ for k in ${array[@]} ; do echo $k ; done
{100..300..100}
What am I doing wrong?