Which loop in shell scripting tests the condition before executing the body of the loop?

  • while
  • for
  • until
  • do-while
The while loop in shell scripting tests the condition before executing the body of the loop. It will repeatedly execute the loop body as long as the specified condition remains true.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *