Erik Andersen <email@example.com> writes: > expr can be replaced with posix shell expressions. This is not true in general, as there is no support for regular expressions in POSIX sh. $ expr "abcdef" : '[ab]*\(.\).*' c Most of the time you can rewrite the code to use parameter substitution or the arithmetic builtins, so this is not a serious objection, just a FYI. Kjetil T.