Answer Posted / jayachandran.g.r
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 |
Post New Answer View All Answers
How do I run a shell script on a mac?
What are the types of script?
Explain about the slow execution speed of shells?
What does it mean to debug a script?
How do I run a .sh file?
What is wc in shell script?
What is the use of break command?
I want to monitor a continuously updating log file, what command can be used to most efficiently achieve this?
Can you write a script to portray how set –x works?
What does it mean by #!/Bin/sh or #!/Bin/bash at the beginning of every script?
How will you find the 99th line of a file using only tail and head command?
Is powershell a language?
What is shell environment?
What are zombie processes?
What does chmod do?