write a non recursive shell script that accepts any number
of arguments and prints them in the reverse order
Answer Posted / drths
$ sh rev.sh 123 ---Script name with 1 cmd line argument
------------------------------
#! /bin/sh
abc=$1 ###123 will store in abc
pqr=`echo $pqr | rev` ### 123|rev
echo $abc
-----------------------------
o/p : 321
Is This Answer Correct ? | 0 Yes | 5 No |
Post New Answer View All Answers
What is bash used for?
What is shell variable?
What is awk script?
How to print all array elements and their respective indexes?
How do I set bash as default shell mac?
What is gui scripting?
How do you debug a script?
Print the 10th line without using tail and head command.
Write a command sequence to find all the files modified in less than 2 days and print the record count of each.
What does sh mean?
what is info area how many types?
What is bash coding?
c program the catches the ctrl-c(SIGINT) Signal for the first time and prints a output rather and exit on pressing Ctrl-C again
What are types of shells?
what is tickets $ what low,medium,high priorite pls define time also