In the previous articles on Loop Statements, we have seen how a loop works. The For Loop as well as the While Loop keep executing a block of commands till the condition stays true. Once the condition becomes false, the loop is terminated.
Read More about 'FOR' and 'WHILE' Loops:
- Basic Linux Shell Scripting Language : Introduction to 'For' Loops
- Basic Linux Shell Scripting Language : 'While' Loops
In this article, we will see a different kind of loop that keeps executing a block of commands till the condition becomes true. The loop is known as 'Until' Loop and it works in totally opposite way as that of the 'While' Loop. Before we proceed to the tutorial part, I recommend that you should read my article on While loops and if you are new to Shell Scripting, please read- Getting Started - Linux Shell Scripting Language.
Read more at YourOwnLinux