for
A command of the separate bcma command line; see Commands for other chip families.
Execute a series of commands in a loop.
for <var>=<start>,<stop>[,<step>[,<fmt>]] '<command>' ...
Built-in help
Iterate a series of commands, each time setting <var> to the
loop value. Each argument is a complete command, so if it contains
more than one word, it must be placed in quotes.
Use single quotes can avoid expanding the environment variable
before executing the loop.
The valid integer conversion formats for <fmt> are %d, %i, %o, %u,
%x, and %X. The default conversion format is %d (decimal) if <fmt>
is not specified.
If one of the command iterations fails, the execution will stop,
unless the environment variable '_looperror' is set to 0.
Built-in examples
port=0,23 'echo port=$port'
i=8,16,2,0x%08X 'echo $i'