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 a program shell?
What is a shell? · Types of shell · what is shell scripting?
What is the difference between grep and egrep?
What is ms powershell?
Explain about shebang?
What happens on a system call?
How do you know which shell I am using?
how to print the 2-d, 3-d arrays in unix shell script programs please answer thi questio to my mail venusaikumar@gmail.com
What is sed in shell script?
How do I open a jshell in cmd?
How do we delete all blank lines in a file?
How do I save a powershell script?
What are "c" and "b" permission fields of a file?
Is shell and terminal the same?
How to check if a directory exists?