How to use arithmetic operations in bash

Posted by bob on Feb 25, 2021 2:38 PM EDT
Xmodulo
Mail this story
Print this story

When you are writing a bash script, sometimes you may want to crunch numbers quickly inside the script. For example, you want to convert a unit of data you are working with, round a divided value to the nearest integer, increment a counter in simple loops, etc. This tutorial presents tips on how to perform integer and floating point arithmetic operations in a bash shell script.

Full Story

  Nav
» Read more about: Story Type: News Story

« Return to the newswire homepage

This topic does not have any threads posted yet!

You cannot post until you login.