bash script loop

Shell
while [ <some test> ]
do
<commands>
done
Source

Also in Shell: