trash 1204881450 learn Just do *not* use it, there is mostly always another decent way to achieve what you want. lhunath 1204881896 forget lhunath 1204881961 learn 'expr' is a program used in ancient shell code to do math. In bash, use '(( expression ))' or 'let expression'. \amethyst 1205527995 forget \amethyst 1205527997 learn is a program used in ancient shell code to do math. In Posix shells like bash, use $(( expression )). In bash and ksh93, you can also use '(( expression ))' or 'let expression' if you don't need to use the result in an expansion. \amethyst 1205528006 forget \amethyst 1205528012 learn 'expr' is a program used in ancient shell code to do math. In Posix shells like bash, use $(( expression )). In bash and ksh93, you can also use '(( expression ))' or 'let expression' if you don't need to use the result in an expansion. ormaaj 1415910658 forget ormaaj 1415910826 learn 'expr' is a program used in ancient shell code to do math. In Posix shells like bash, use $(( expression )). In bash, ksh88+, mksh/pdksh, or zsh, you can also use '(( expression ))' or 'let expression'.