Documented in Volume 1 of the UNIX Programmers Manual.
% expr $a : '.*/\(.*\)' '|' $a Finds the filename part (least significant part) of the pathname stored in the variable named 'a' which may or may not contain `/'. Note the quoted shell metacharacters.
a=\`expr $a + 1\` Add 1 to the shell variable named 'a'.
To Index