Performing Mathematical Operations
The various operating system shells all have means of performing mathematical operations either from the command-line, or from within a shell script. In this chapter, we’ll look at how to perform operations with both integer and floating point math.
Topics in this chapter include:
- Performing integer math with expressions
- Performing integer math with integer variables
- Performing floating point math with
bc
If you’re ready, let’s get started.