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
What does it mean by #!/Bin/sh or #!/Bin/bash at the beginning of every script?
What can you do with powershell?
Explain how you Automate your application using Shell scripting.
What does path stand for?
What is sudo command?
What is the command to find out users on the system?
What are types of shells?
What is the syntax of "nested if statement" in shell scripting?
What are "c" and "b" permission fields of a file?
What does $0 mean in shell script?
What is the command to find out today's date?
What happens on a system call?
What is computer cli?
Write a script to print the first 10 elements of fibonacci series.
Given a file find the count of lines containing the word "abc".