Posts Tagged ‘bash; for; loop; while; iterate; sh; seq; sequence’

In languages like C and Java, if you want to run something 10 times you could write something like for (int i = 0; i < 10; ++i) { … } You can do this in a number of ways in Bash, but one of the easiest ways is like this; for i in {1..10}; […]