Shell Programming/for

From Wikibooks, open books for an open world
Jump to navigation Jump to search

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.