Can you do math on the Linux command line? You sure can! In fact, there are quite a few commands that can make the process easy and some you might even find interesting. Let’s look some very useful commands and syntax for command line math….
Source: https://www.networkworld.com/article/3268964/linux/how-to-do-math-on-the-linux-command-line.html