VideosMy ProjectsProgramming BlogGallery
  1. Home
  2. Blog
  3. How to add numbers in bash
Programming Blog

Atom/RSS Feed

bash

How to add numbers in bash

bash

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

Adding numbers example

echo $((4 + 4))

8

Further details

Bash Arithmetic Expressions

Join my mailing list