while loop with condition in bash script code example Example: while loop bash while true; do #code done