for loop



for var [ in word... ]
do
   statements
done


examples/script/for_loop.sh
#!/bin/bash

for x in 1 2 4 6
do
   echo $x
done

for file in *.xml
do
   echo $file
done