InterviewSolution
Saved Bookmarks
| 1. |
What Is The Basic Syntax Of While Loop In Shell Scripting? |
|
Answer» LIKE the for LOOP, the while loop repeats its block of commands a number of times. UNLIKE the for loop, however, the while loop iterates until its while CONDITION is no longer true. The basic syntax is : while [ test_condition ] do commands… done Like the for loop, the while loop repeats its block of commands a number of times. Unlike the for loop, however, the while loop iterates until its while condition is no longer true. The basic syntax is : while [ test_condition ] do commands… done |
|