signs precede numbers; % matches the rear because percent signs follow numbers.
The expression ${DIRSTA... ences to the basename and dirname commands. These perform simple string manipulations on their arguments. You'll also see many uses of sed and awk or perl -e to perform simple string manipulations.
Often these machinations are necessary perform on lists o