Using control structures

The shell provides facilities similar to those found in programming languages. It offers these control structures, which are related to programming control structures:
  • The if conditional
  • The while loop
  • The for loop