.TH DIRNAME 1L "GNU Shell Utilities" "FSF" \" -*- nroff -*-
.SH NAME
dirname \- strip non-directory suffix from file name
.SH SYNOPSIS
.B dirname
filename
.br
.B dirname
{\-\-help,\-\-version}
.SH DESCRIPTION
This manual page
documents the GNU version of
.BR dirname .
.B dirname
prints all but the final slash-delimited component of
.IR filename .
If
.I filename
is a single component,
.B dirname
prints `.' (meaning the current directory).
.SS OPTIONS
.TP
.I "\-\-help"
Print a usage message on standard output and exit successfully.
.TP
.I "\-\-version"
Print version information on standard output then exit successfully.
