while bash loop code example
Example 1: while loop bash
while true;
do
#code
done
Example 2: bash while done
while CONDITION_STATEMENT; do SOME_CODE; done
while true;
do
#code
done
while CONDITION_STATEMENT; do SOME_CODE; done