s6-portable-utils Software skarnet.org
s6-basename prints the basename of a pathname.
s6-basename [ -n ] path [ suffix ]
s6-basename acts as the generic basename utility.
s6-basename is suitable as a Single Unix basename program.