Arithmetic operations using ((

When using bash and some other advanced shells, we can make use of the (( )) notation to simplify mathematical operations with scripts.

Get Mastering 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.