Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is the syntax of "expr" command?

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


Please Help Members By Posting Answers For Below Questions

What does it mean by #!/Bin/sh or #!/Bin/bash at the beginning of every script?

1044


What can you do with powershell?

1107


Explain how you Automate your application using Shell scripting.

2296


What does path stand for?

1043


What is sudo command?

1023


What is the command to find out users on the system?

948


What are types of shells?

1010


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

1081


What are "c" and "b" permission fields of a file?

1009


What does $0 mean in shell script?

984


What is the command to find out today's date?

1125


What happens on a system call?

989


What is computer cli?

880


Write a script to print the first 10 elements of fibonacci series.

2327


Given a file find the count of lines containing the word "abc".

1536