I frequently write for-loops in bash with the well-known syntax:
for i in {1..10} [...]
Now, I\'m trying to write one where the top is def
If you have a gnu system, you can use seq to generate various sequences, including this.
seq
for i in $(seq $TOP); do ... done