Unix - Shell Loop Control (Infinite, Break and Continue) - Tutorialspoint
經安全檢測,此網站為安全網站,請放心前往原始網址!
Unix - Shell Loop Control (Infinite, Break and Continue) - Tutorialspoint
Here is a simple example that uses the while loop to display the numbers zero to
nine: #!/bin/sh a=10 while [ $a -ge 10 ] do echo $a a=`expr $a + 1` done.