DEV Community

Discussion on: Arithmetic Operations | Shell Scripting

Collapse
 
leob profile image
leob

Might be useful to mention that apart from expr there's also let and "double parentheses":

let a=1+2
a=$(( 1 + 2 ))
Enter fullscreen mode Exit fullscreen mode
Collapse
 
rahulmishra05 profile image
Rahul Mishra

Yeah, thanks for sharing 👍