Last modified on 30 November 2010, at 02:58

Shell Programming/for

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.