The exprcommand is powerful and can perform many (Crystaltech web hosting)
The exprcommand is powerful and can perform many expression evaluations. The principal ones following table: Expression EvaluationDescriptionexpr1 | expr2expr1if expr1is nonzero, otherwise expr2expr1 & expr2Zero if either expression is zero, otherwise expr1expr1 = expr2Equalexpr1 > expr2Greater thanexpr1 >= expr2Greater than or equal toexpr1 < expr2Less thanexpr1 <= expr2Less than or equal toexpr1 != expr2Not equalexpr1 + expr2Additionexpr1 - expr2Subtractionexpr1 * expr2Multiplicationexpr1 / expr2Integer divisionexpr1 % expr2Integer moduloIn newer scripts, the use of expris normally replaced with the more efficient $((...))syntax, whichwe discuss later in the chapter. printfThe printfcommand is available only in more recent shells. X/Open suggests that we should use to echofor generating formatted output. The syntax isprintf format string parameter1 parameter2 ... The format string is very similar to that used in C or C++, with some restrictions. Principally, floatingpoint isn t supported, because all arithmetic in the shell is performed as integers. The format string sists of any combination of literal characters, escape sequences, and conversion specifiers. All charactersin the format string other than %and appear literally in the output. The following escape sequences are supported: Escape SequenceDescription\Backslash characteraAlert (ring the bell or beep) Table continued on following
Note: In case you are looking for affordable and reliable webhost to host and run your j2ee application check Vision best web hosting services