Execute commands for each member in a list.
Synopsis
for NAME [in WORDS...]; do COMMANDS; done
Description
Expand WORDS and execute COMMANDS once for each member, with NAME bound to the current member. Runs in the just-bash WASM shell inside SLICC.
Examples
$ for f in *.txt; do echo "$f"; done
Print each .txt file name.
$ for i in 1 2 3; do echo "Number: $i"; done
Iterate over a list of numbers.
See Also
while, until, seq, break, continue