DEV Community

Cover image for Until Loop | Shell Scripting
Rahul Mishra
Rahul Mishra

Posted on β€’ Originally published at hashnode.com

2

Until Loop | Shell Scripting

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.

  1. Until loop are slightly different from while loop.
  2. Syntax of while loop and until loop is same, but the functionality wise both are opposite.
  3. Syntax of until loop

    until [ condition ]
    do
        command1
        command2
        command3
    done
    
  4. 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

πŸ“§ Write a mail

rahulmishra102000@gmail.com

πŸš€ Other links

GitHub
HackerRank

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

Top comments (0)

Sentry image

See why 4M developers consider Sentry, β€œnot bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

πŸ‘‹ Kindness is contagious

Please leave a ❀️ or a friendly comment on this post if you found it helpful!

Okay