This is a multipart blog article series where I am going to explain the concepts of shell scripting and how to write a shell script in Linux, UNIX or Mac based systems. You can also follow this tutorial blog using windows but for that you have to install a bash from.
In this article we are going to discuss about until loop.
- Until loop are slightly different from while loop.
- Syntax of while loop and until loop is same, but the functionality wise both are opposite.
- Syntax of until loop
until [ condition ] do command1 command2 command3 done
- The difference between while loop and until is that, in while if the condition is true than only commands get executed. While on the other hand in the, until loop if the condition is false then only commands will get executed.
Reference code file for this article
So this was a brief explanation about until loop. Hope you liked it and learned something new from it.
If you have any doubt, question, quires related to this topic or just want to share something with me, than please feel free to contact me.
๐ฑ Contact Me
Twitter, LinkedIn, Telegram, Instagram,