-
BASH > convertir une chaine en nombre
$((X))
echo $((3+6)) 9
a=11 b=3 c=$(($a+$b)) echo $c 14
mix strings et nombres
echo $((3+hello)) 3
expr
note that it is not a “native” Bash procedure, as you need to have
coreutils
installed as a separate package.expr $a + $b \* $c - $d 16