SyntaxFix
Write A Post
Hire A Developer
Questions
use a shell built-in let , it is similar to (( expr ))
let
(( expr ))
A=1 B=1 let "C = $A + $B" echo $C # C == 2
source: https://www.computerhope.com/unix/bash/let.htm