Monday, 22 December 2014

Arithmetic Calculation in Shell Scripts

To do arithmetic calculation we can use either expr or bc.

EXPR Syntax:

`expr $A + $B` (Space is Mandatory)

BC Syntax:

$A+$B|bc

 

No comments:

Post a Comment