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

Write a command sequence to find all the files modified in less than 2 days and print the record count of each.

1500


How to debug the problems encountered in the shell script/program?

1133


What is the syntax of while loop in shell scripting?

1041


How do we create command aliases in a shell?

987


What is the use of a shebang line?

1186


What language is used in terminal?

978


What are the advantages of using shell scripts?

1058


How do I open the shell in cmd?

1123


What is k shell?

940


What is a shell in operating system?

1100


What is a batch file used for?

1075


What does path stand for?

1056


How do scripts work?

1032


What exactly is a shell?

1070


How do I stop script errors?

1113