Skip to content

Looping Concepts

There are three looping can be used in shell scripting. They are

  • For Loop.
  • While Loop.
  • Until Loop.

To change the flow of the loop, there are two commands can be used. They are

  • break - To break the loop and come out of the immediate loop execution
  • continue - To skip the iteration and continue the next iteration of the loop

Let's see how each loop is working