RE: What are the different kinds of loops available in shell script?
if and case are not loops but rather control structures. until is also used with the while keyword I checked in KornShell Programming Tutorial by Barry Rosenberg to be sure this is right.
RE: What are the different kinds of loops available in shell script?
While loop The syntax for while is:
while condition do statements... done
For loops The syntax for the for loop:
for name [in list] do statements that can use $name... done
Untill loops The until construct works almost exactly the same as while. The only difference is that until executes the body of the loop so long as the conditional expression is false whereas while executes the body of the loop so long as the conditional expression is true. Think of it as saying "Execute until this condition becomes true."