Summary

In this chapter, you learned about performing arithmetic operations in various ways, such as using declare, let, expr, and arithmetic expressions. You also learned about representing numbers in different bases such as hex, octal, and binary. You learned about using the bc utility to perform floating-point or fractional arithmetic.

In the next chapter, you will learn about automatic decision-making by working with tests and using if-else, case, select, for, while, and do while. You will also learn to control loops using break and continue statements.

Get Learning Linux Shell Scripting - Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.