write a non recursive shell script that accepts any number
of arguments and prints them in the reverse order
Answer Posted / naresh babu
echo "no of arguments:$#"
echo "arguments in reverse order:"
for i in $*
do
j=$i" "$j
done
echo $j
| Is This Answer Correct ? | 26 Yes | 9 No |
Post New Answer View All Answers
Rewrite the command to print the sentence and convert the variable to plural: echo “i like $variable”.
What is awk script?
c program to display the information of given file similar to givan by the unix or linux command ls -l
What is c in shell script?
Can we run shell script in windows?
Print a given number, in reverse order using a shell script such that the input is provided using command line argument only.
What does it mean to debug a script?
Please give me example of " at command , contrab command " how to use
What is an sh file?
How do I open the shell prompt?
Differentiate between ‘ and ” quotes.
What lives in a shell?
Explain about return code?
What is the syntax of while loop in shell scripting?
Explain about the exit command?