Task: Using Variables in a Bash For Loop with Brace Expansion
Task: Using Variables in a Bash For Loop with Brace Expansion: a task in Terminal-Lego-15k (Harbor dataset). Write a bash script that correctly uses a variable to control the upper bound of a for loop iteration range. The challenge is that bash brace expansion ( {0..N} ) does not support variables…
The task
Write a bash script that correctly uses a variable to control the upper bound of a `for` loop iteration range. The challenge is that bash brace expansion (`{0..N}`) does not support variables directly — you must find a working alternative.
Part of PrimeIntellect/Terminal-Lego-15k.