Article
home/blog/Loading

How to add numbers in bash

To add a number you need to encase the expression in $(( ))

Adding numbers example

echo $((4 + 4))

8

Further details

Bash Arithmetic Expressions