While loop

Documentation: http://tldp.org/LDP/Bash-Beginners-Guide/html/sect_09_02.html

#!/bin/bash
# This script opens 4 terminal windows.

i="0"
while [ $i -lt 4 ]
do
    xterm &

    i=$[$i+1]
done