#!/bin/sh
while [ comand ]
do
statement to be exeuted if command is true
done
In this exemple "echo" and read statement run will go forward until we type "bye"
Normaly "while" command execute a code if this expression code is true, and stop only when is false or when say (type) stop.