syntax of For Loops

#!/bin/sh
for i in 1...N
do
Statement to be execudet for every word
done

Exemple

#!/bin/sh
for i in 1 2 3 4 5
echo "looping...number $1"
done

Explanation

The for loops iterate a throught a set of value, list of item until is finished.
Practicaly this loop repeat a set of commands for each item of the list