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
What is k shell?
State the advantages of shell scripting?
How to calculate the number of passed arguments?
What is $1 in shell scripting?
What are the disadvantages of shell scripting?
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 a scripting language simple definition?
How many fields are present in a crontab file and what does each field specify?
Determine the output of the following command: [ -z “” ] && echo 0 || echo 1
What is the difference between grep and egrep?
What are the advantages of using shell scripts?
What is difference between shell and bash scripting?
Write a command sequence to find all the files modified in less than 2 days and print the record count of each.
Explain how you Automate your application using Shell scripting.
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.