Arithmetic Evaluation Shell Scripting

Arithmetic Evaluation - Shell Scripting

Arithmetic Evaluation - Shell Scripting - 5.0 out of 5 based on 1 vote
User Rating:  / 1
PoorBest 

id++ id-- : variable post-increment and post-decrement

echo $((a++))

       ++id --id

              variable pre-increment and pre-decrement

               echo $((++a))

       - +    unary minus and plus

       ! ~    logical and bitwise negation

       **     exponentiation

       * / %  multiplication, division, remainder

       + -    addition, subtraction

       <= >= < > comparison

       == !=  equality and inequality

       &&     logical AND

       ||     logical OR

 

 

You are here: Home Tutorials Shell Scripting Arithmetic Evaluation