DIRNAME(1)

NAME
dirname - return the directory portion of a pathname

SYNOPSIS
dirname path

DESCRIPTION
Dirname deletes the file part of the given path and prints the result, or `.' if no directory part is present.

SEE ALSO
basename(1), sh(1)