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
How do I run a shell script on a mac?
how to get part of string variable with echo command only?
What are the advantages of using shell scripts?
What happens on a system call?
How do you know which shell I am using?
How can the contents of a file inside jar be read without extracting in a shell script?
Why do we use shell scripting?
What exactly is a shell?
Is shell a scripting language?
Explain about login shell?
Explain about the slow execution speed of shells?
State the advantages of shell scripting?
What is the use of .sh file?
Using set -A write a script to print the output of the ls command in 5 columns with two spaces between each column. Pretend that ls does not have multicolumn output.
What does $0 mean in shell script?