.
Previous

Interview Questions on Shell Script

26. How to write until loop?

until command
do
   Statement(s) to be executed until command is true
done

27. How to write select loop?

until command
do
   Statement(s) to be executed until command is true
done

29. What is the use of break?

At particular condion if we want to come out of loop then we can use break.

30. What is the use continue?

if we want to skip particular condition then we can use break.

Previous