What is the syntax of "expr" command?
Answers were Sorted based on User's Feedback
Answer / 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 |
it is used to use arithmatic operation in shell scripting
stntx: expr op1 opertor op2
where op1 and op2 may be any integer no(without any
decimalpoint)and operator can be
+ Addition
- Subtraction
/ division
% Modular
\* Multiplication
EX: $expr 1 + 3
o/p 4
| Is This Answer Correct ? | 31 Yes | 18 No |
What are environment variables?
How do I run a powershell script?
1.Write a script, which converts a number from binary to hexadecimal format or vice versa.
What language is bash?
How do I open the shell prompt?
is this growing field and what is average package in this?
What is bash eval?
Why is the use of shell script?
If one dont know how to create a script then how he/she can use the QTP?
shell script for reverse the string
What is the first line in every perl script called?
Hi All, Is it possible to create one file name only space or space in file name in UNIX and we can able to run that on Unix?