What is the use of break command?



What is the use of break command?..

Answer / Shahnawaz Khan

The break command is used to exit from a loop prematurely in shell scripting. When the break command is encountered within a loop, the script immediately jumps out of the current loop structure.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Shell Script Interview Questions

What is shell chemistry?

1 Answers  


Set up a Sev 2 alert when the Primary WA service fails. A windows batch script needs to be created that will monitor the WA service on the Primary and when the service stops/fails a Sev 2 TT is generated for a particular team ?

1 Answers   TCS,


how to search for vowels a,e,i,o,u appearing in the same sequence in a file

4 Answers   Amazon,


what are command line arguments? what is the need of those?

1 Answers   Flipkart,


What is shell scripting used for?

1 Answers  


Write a command sequence to find the count of each word?

1 Answers  


write a shell script to emulate the Id command of PRIMOS which lists files and directories. It list files first with a header FILES and then directories with a header DIRECTORIES. This command has several options. The main ones are. -file select files only -dir select directories only -reverse sort in reverse order -no_header put no header on the output -brief output the header only -size display the size of each file -help display Id´s syntax and options.

1 Answers  


What can you do with powershell?

1 Answers  


write a shell script that counts a number of unique word contained in the file and print them in alphabetical order line by line?

6 Answers   IBM, Wipro,


Explain about debugging?

1 Answers  


What is shell and terminal?

1 Answers  


Explain about gui scripting?

1 Answers  


Categories