Quiz on Unix Shell Loops



1. What is the primary purpose of loops in Unix shell scripting?
2. Which loop in Unix shell is used for iterating over a list of items?
3. What does the 'while' loop do in Unix shell scripting?
4. In a 'for' loop, what is the syntax to define a range from 1 to 5?
5. What is the function of the 'until' loop in Unix shell scripting?

Advertisements