How do I iterate over a range of numbers in Bash when the range is given by a variable?
I know I can do this (called \"sequence expression\" in the Bash documentatio
This is another way:
end=5 for i in $(bash -c "echo {1..${end}}"); do echo $i; done