Pages

Wednesday, March 28, 2012

Arithmetic equations in bash

Basic equations in bash scripts:

x=15
y=8
sum=$((x+y))

dif=$((x-y))

mod=$((x%y))

prod=$((x*y))

0 comments:

Post a Comment