What are the different kinds of loops available in shell
script?
Answer Posted / swaroopa
Broadly categorised in 3
for
while
until
if and case are not loops but rather control structures
| Is This Answer Correct ? | 9 Yes | 1 No |
Post New Answer View All 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.
What is the command to find out users on the system?
What is shell chemistry?
Calculate a real number calculation directly from the terminal and not any shell script.
How to find duplicate record in file using shell script?
What are the different commands available to check the disk usage?
What is in a script?
Why is a script important?
What is computer cli?
What does it mean by #!/Bin/sh or #!/Bin/bash at the beginning of every script?
What is the difference between scripting and coding?
How to print the first array element?
How do we delete all blank lines in a file?
What is echo $shell?
Write down the syntax of "for " loop