basename (strip directory and suffix from filenames)

Usage

basename PATH VAR

Synopsis

Remove directory part from the PATH and store result into variable VAR.