Convert a full pathname to just a path

SYNTAX
dirname pathname

DESCRIPTION

Prints all but the final slash-delimited component of a
string (presumably a filename).
If PATHNAME is a single component, &qt;dirname&qt;&qt; prints &qt;.&qt;&qt;
(meaning the current directory)