expr

Evaluate expressions

low risk

interactive breakdown — edit the command and press Explain
$ 
What it does

Old-style arithmetic and string evaluation; $(( )) is preferred in bash.

Examples
Related
bc
Open the full explainer →More in Shell & Scripting

Reference text is hand-written and may be incomplete — check man expr for your version. Test destructive commands on a non-production system first.