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 test and using if-else, case, select, for, while, and dowhile. You will also learn to control loops using break and continue statements.

Get Learning Linux Shell Scripting now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.