write a non recursive shell script that accepts any number
of arguments and prints them in the reverse order

Answer Posted / amar

./reverse frg gh rtyh
no of arguments:3
arguments in reverse order:
rtyh gh frg

Is This Answer Correct ?    0 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to print the matrix form of 2-d, 3-d arrays in unix c shell scripts ?

3587


What is the difference between bash and shell?

633


Write down the syntax of "for " loop

600


When should shell programming/scripting not be used?

581


How to print all the arguments provided to the script?

544






What is inside a seashell?

627


Explain about return code?

625


shell script for reverse the string

910


What are "c" and "b" permission fields of a file?

552


How do I run a script on mac?

563


What is shift command in shell script?

516


What is the significance of the shebang line in shell scripting?

525


What is in a script?

560


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.

2215


What is a shell made of?

550