What is the syntax of "expr" command?

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


Please Help Members By Posting Answers For Below Questions

Write a shell script to get current date, time, user name and current working directory.

845


How can I set the default rwx permission to all users on every file which is created in the current shell?

1180


What language is bash written in?

756


Is powershell a language?

758


What are filters explain sort with all the options available?

1140


What is awk script?

714


How do I debug a shell script?

801


c program to display the information of given file similar to givan by the unix or linux command ls -l

1928


How do I run a bin bash script?

755


How does shell scripting work?

841


How to find all the files modified in less than 3 days and save the record in a text file?

836


how to print the matrix form of 2-d, 3-d arrays in unix c shell scripts ?

3829


How to open a read-only file in the shell?

854


What is the syntax of "nested if statement" in shell scripting?

809


Is bash a shell script?

808