Hi JTan,
There three basic loop constructs in Korn shell scripting:
1) for loops
eg:
for <variable> in <word> [<word> ... ]
do
<commands>
done
2) while loops
eg:
while <command>
do
<commands>
done
3) until loops
eg:
until <command>
do
<commands>
done
But try the man pages (man ksh) on the flavour of UNIX you are using for further details. For the other shells, see their man pages.
I hope that helps.
Mike