Write down the syntax for all the loops in shell scripting.



Write down the syntax for all the loops in shell scripting...

Answer / Sarika Chaudhari

In shell scripting, there are three types of loops: 1) for loop: `for variable in listn do commandsndone`, 2) while loop: `while conditionndo commandsndone`, and 3) until loop: `until conditionndo commandsndone`.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Shell Script Interview Questions

Explain about non-login shell files?

1 Answers  


how to get part of string variable with echo command only?

1 Answers  


How will you emulate wc –l using awk?

1 Answers  


What is the difference between a 'thread' and a 'process'?

3 Answers  


How to enable the shell to know what program should be run to interpret the script?

3 Answers  


what does "kill -9" and "kill -1" do

2 Answers   Amazon,


What is a shell made of?

1 Answers  


What is gui scripting?

1 Answers  


How do I run a script from command prompt?

1 Answers  


how do you write sql queries using shell script for eg:- we have databae table like EMPNO,ENAME,SAL,DEPTNO columns in EMP table how you display EMPNO,SAL FIELDS from emp in SHELL SCRIPT please explain with an example

4 Answers  


Which shell is the best?

1 Answers  


What is egrep?

2 Answers  


Categories