Arithmetic Substitution

An arithmetic expression enclosed in double parentheses preceded by a dollar sign ($(())) is replaced by the value of the arithmetic expression within the double parentheses.

Get Korn Shell: Unix and Linux Programming Manual, Third Edition, The 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.