Answers for "what loops are present in shell scripting?"

35

for loop in shell script

for i in {1..5}
do
   echo "Welcome $i times"
done
Posted by: Guest on July-08-2020
1

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 "what loops are present in shell scripting?"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language