dirname

NAME

dirname - return directory portion of path name

SYNOPSIS

dirname string

DESCRIPTION

The dirname(1) utility deletes the file name portion of string, beginning with the last forward slash / character to the end of string, and writes the result to the standard output.

DIAGNOSTICS

The dirname(1) utility exits 0 on success, and >0 if an error occurs.

SEE ALSO

sh(1)