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 the syntax of "nested if statement" in shell scripting?
What is web script?
What is meant by $1 in shell script?
Explain about sourcing commands?
How will you pass and access arguments to a script in linux?
Hello all, This is my assignment on shell scripting, can anyone help me regarding this ? Create a shell script which connects to the database In second shell script include the first script for the DB connection Create a table (PRADEEP_DATA) with 2 columns (name, value) In Third shell script include the first script for the DB connection And insert/delete the values from the Table, by accepting input from the user This functionality should be a menu driven Program: 1) Insert to the database a. Name b. value 2)Delete from the database a.Name b.value Exception handling needs to be taken care.
What is shell company all about?
What is shell scripting?
What is a program shell?
What is console line?
What is the first line of a shell script called?
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 is shell environment?
What does it mean to debug a script?
How important is shell scripting?