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

Explain about the slow execution speed of shells?

1231


What is awk script?

986


How to find duplicate record in file using shell script?

1406


What is path in shell script?

1097


What is sudo command?

1063


Explain about echo command?

1105


Is shell script a programming language?

1038


What are the four fundamental components of every file system on linux?

1685


‎What is a shell? · ‎Types of shell · ‎what is shell scripting?

984


What is bash used for?

1013


How to get the last line from a file using just the terminal?

1232


What is the crontab?

1088


How can I send a mail with a compressed file as an attachment?

1040


What are the different types of shell scripting?

1119


What does $@ mean bash?

1177