Understanding Loop in Unix or Linux
loop in Unix and Linux:
a.for loop
b.while loop
c.until loop
What is a loop?
Something that iterates continuously.
Why we need?
If there is a repetitive task required we can use loop.
How to implement?
for(( index = 0;index less than 10;index++ ))
do
statements;
done
0 less than 10---true
1 less than 10---true
2 less than 10---true
10 less than 10---false
for(( initialization;condition;increment ))
do
statement;
done
while [ condition ]---true
do
statements;
done
exit condition
until [ condition ]---false
do
statements;
done
exit condition
,loop in shell script
,while loop in shell script
,until loop in shell script
,if loop in shell script
,select loop in shell script
,while loop in shell script to read file
,do while loop in shell script
,for loop in bash shell script
,for loop in unix shell script
On this page of the site you can watch the video online Understanding Loop in Unix or Linux with a duration of hours minute second in good quality, which was uploaded by the user Interview Question Bank 17 May 2020, share the link with friends and acquaintances, this video has already been watched 364 times on youtube and it was liked by 39 viewers. Enjoy your viewing!