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 |
wats the she bang statment with syntax?
How are shells born?
write a shell program to check wheather a given string is pallindrome or not?
How to include comments in your shell scripts?
What is bourne shell scripting?
c program which accept one argument as a directory name and prints all the file name along with its inode number and total count of the file in directory
is this growing field and what is average package in this?
What is an sh file?
How do I run a powershell script?
How to handle the delimiter unit seperator in Unix
What is the syntax of "grep" command?
What is the best scripting language?