Mastering Division of Variables in Bash

Posted by bob on May 8, 2023 6:55 PM EDT
Linux Journal; By George Whittaker
Mail this story
Print this story

One of the common tasks you'll encounter when scripting in Bash is performing arithmetic operations on variables, particularly division. This process might seem straightforward, but it requires careful attention due to the lack of floating-point support in Bash by default. In this article, we will dive into several methods for dividing variables in Bash, and you'll discover how to handle the lack of floating-point division in Bash.

Full Story

  Nav
» Read more about: Story Type: Tutorial; Groups: Community, Linux

« Return to the newswire homepage

This topic does not have any threads posted yet!

You cannot post until you login.