Answer Posted / swaroopa
while [ $num -gt 0 ]
do
i=`expr $i \* 10 + $num % 10`
num=`expr $num / 10`
done
| Is This Answer Correct ? | 35 Yes | 10 No |
Post New Answer View All Answers
Is shell and terminal the same?
How to get script name inside a script?
How to find duplicate record in file using shell script?
What is scripting used for?
What is the use of "$?" Sign in shell script?
What is sudo command?
How to print pid of the current shell?
How to use arguments in a script?
What does egrep mean?
Is shell script a programming language?
How can I set the default rwx permission to all users on every file which is created in the current shell?
Print a given number, in reverse order using a shell script such that the input is provided using command line argument only.
What is the lifespan of a variable inside a shell script?
What is the conditional statement in shell scripting?
How will you connect to a database server from linux?