for i in {1..$END}

Today I ran into an issue with the for loop in a simple bash script. The code below is not working.

The reason is that bash does the brace expansion before the variable expansion. What would be a nice replacement for the for loop?

I just hope that I will remember this the next time…

This entry was posted in Fedora. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.