Error:

for loop syntax

for s in One Two Three; do
    echo "$s"
done

# Enumerate $@
for s 
do
   echo "$s"
done

for loop syntax (with counter)

for (( i = 0; i < 5; i++ )) do
    echo $i
done

while loop syntax

while true; do
    # something something something
done

while loop syntax (C-style)

(( i = 0 ))
while (( i < 10 )); do
    echo "$i"
    (( i += 1))
done

until syntax

until [[ "$cmd" == "quit" ]]; do
    echo -n "Cmd: "
    read cmd
done

loop control (break, continue)

# Print only even numbers
for (( i = 0; i < 5; i++ )) do
    if (( i % 2 )); then
        continue;
    fi
    echo $i
done

# break from the loop
while true; do
    echo -n "Cmd: "
    read cmd
    if [[ "$cmd" = "quit" ]]; then
        break;
    fi
done

break from multiple loops

for (( i = 0; i < 3; i++ )) do
    while true; do
        echo -n "Loop #$i, cmd: "
        read cmd
        if [[ "$cmd" = "quit" ]]; then
            # continue with next command loop
            break;
        fi

        if [[ "$cmd" = "quit!" ]]; then
            # continue with next command loop
            break 2;
        fi
    done
done

Iterate over the range of numbers

for i in {1..10}; do
    echo $i
done