Answers for "while loop inside for loop shell script"

0

while loop shell script

#!/bin/sh

a=0

while [ $a -lt 10 ]
do
   echo $a
   a=`expr $a + 1`
done
Posted by: Guest on November-05-2020
0

for loop while loop shell functions

while check1
do
    # Loop while check1 is successful (returns 0)

    if check1
    then
        echo 'check1 was successful'
    fi

done
Posted by: Guest on October-25-2020

Code answers related to "while loop inside for loop shell script"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language