BASH¶ Iterating over loops¶ Source Bash has built in loops: END=5 for ((i=1;i<=END;i++)); do echo $i done Alternatively, something like seq could be used, although it will be slower.