Until command

The syntax of the until command is

until list1

do list2

done

qsh runs the two lists repeatedly while the exit status of list1 is non-zero. When the exit status of list1 is zero the command completes.

Examples

  1. An until command to iterate until a condition is met.
    max=100
    index=0
    until [[ $index -eq $max ]] ; do
      echo Index is $index
      let index+=1
    done