LXer: How to use arithmetic operations in bash
by LXer from LinuxQuestions.org on (#5ENJ9)
Published at LXer:
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.
Read More...


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.
Read More...