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
What is difference between shell and bash scripting?
how to print the matrix form of 2-d, 3-d arrays in unix c shell scripts ?
What are the advantages of shell script?
What is shell geeksforgeeks?
How will you print the login names of all users on a system?
What is scripting used for?
c program to display the information of given file similar to givan by the unix or linux command ls -l
How will you pass and access arguments to a script in linux?
shell script for reverse the string
What are the different variables present in linux shell?
Write a shell script that adds two numbers if provided as the command line argument and if the two numbers are not entered throws an error message.
Why do we write bin bash in shell scripts?
What command needs to be used to take the backup?
What is the purpose of scripting?
What can scripts do?