Carding the basic knowledge of shell script & lt; VI & gt;: process Control while Loop statement
While syntax format
While test condition
Do
Instruction
Done
The while loop can be used to read keyboard information. In the following example, the input information is set to the variable FILM and press to end the loop.
Echo 'Press to exit'
Echo-n 'enter the name of your favorite website:'
While read FILM
Do
Echo "Yes! $FILM is a good website"
Done
#! / bin/bash
Int=1
While ($int