I am trying to do something like this in shellscript:
STEP=5
LIST=[1-$STEP]
for i in $LIST
echo $i
done
The output I expect is:
1 2 3 4 5
I probably have seen this usage before ( e.g. [A-Z] ) but I cannot remember the correct syntax. Thank you for your help!