bash loops

Updated: 31 December 2022

until loop

Very similar to the while loop, except that the loop executes until the test-command executes successfully. As long as this command fails, the loop continues.

until test-command; do
    consequent-commands;
done

Leave a comment