In this article you will get the code to loop over a range of numbers in bash script. This code will work for defined range. Variable support is not there.
Code Example –
#!/bin/bash for i in {0..10}; do echo "$i" done # Output: # 0 # 1 # 2 # 3 # 4 # 5 # 6 # 7 # 8 # 9 # 10