How to perform calculation in Linux using Linux Shell command?

We can use the shell commands such as echo, awk, etc to perform the calculation.

Addition using echo command.

$ echo $((5+5))
10

Leave a Reply

Your email address will not be published. Required fields are marked *