What are Loops and explain three different methods of loops in brief?

Answer

Loops are those, which involve repeating a few portion of the program/script either a distinctive variety of instances or until a selected condition is being satisfied.

three strategies of loops are:

For Loop: that is the most generally used loop. For loop permits specifying a listing of values that the manage variable inside the loop can take. The loop is then finished for every value noted in the list.
whilst Loop: that is utilized in a software while we need to do something for a fixed range of instances. even as loop gets carried out until it returns a 0 cost.
till Loop: this is just like even as loop besides that the loop executes until the circumstance is proper. till the loop receives accomplished as a minimum as soon as, it returns a non-zero cost.

All shell scripting Questions

Ask your interview questions on shell-scripting

Write Your comment or Questions if you want the answers on shell-scripting from shell-scripting Experts
Name* :
Email Id* :
Mob no* :
Question
Or
Comment* :
 





Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website. If you are using this website then its your own responsibility to understand the content of the website

--------- Tutorials ---