标签: bash loops
这可以按预期工作:
for rcount in {0..10}; do echo "${rcount}" done
但是我有一个要用作循环范围的变量:
var1=10
这些无效:
for rcount in {0..var1}; do echo "${rcount}" done
for rcount in {0..${var1}}; do echo "${rcount}" done
我该怎么做?