for — For loop.
for
initialization
test
step
body
The for command is like in many other
languages like C and Java. As arguments, it takes an
option, which is often used to set a variable to some
initial value, a
initialization
to
determine whether to continue running, a
test
script
option which is run at each iteration of the body (to
increment a variable, for example), and the body itself.
step