hide random home http://www.fmi.uni-passau.de/archive/doc/unix/unixhelp/Unixhelp/scrpt_scrpt2.7.1.html (Einblicke ins Internet, 10/1995)

Doing arithmetic

Doing arithmetic

The shell does not have any arithmetic features built in and so you have to use the expr command. Details are in the expr(1) manual page.