More math on the Linux command line
Network World
MAY 8, 2025
This post covers five different commands with examples of how to use them and expands upon my earlier post. But, if youre also including a * (multiplication) or / (division) along with an addition or subtraction as in the examples below, the multiplication and divisions take precedence. echo $((10 / 2.5)) -bash: 10 / 2.5:
Let's personalize your content