Sunday 17 January 2016

Bash shell script let command example

#!/bin/bash

#let command alter for expr command

let a=1
let b=2

let add=$a+$b
let sub=$a-$b
let mul=$a*$b
let div=$a/$b

echo $add $sub $mul $div

No comments:

Post a Comment