< Shell Programming

The for statement has the following basic structure:

for variable_name in value1 value2 ...
do
done

Every loop replaces variable_name's value with value1-2 and beyond.

This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.