.TH DIRNAME 1 2022-03-06 "OMKOV coreutils" "General Commands Manual" .SH NAME dirname \(em return the directory portion of a path .SH SYNOPSYS \fBdirname\fR \fIstring\fR .SH DESCRIPTION Print the directory portion of a given path. .SH OPTIONS The following options are supported: .TP .B --help Display help information. .TP .B --version Display version information. .SH OPERANDS The following operand is supported: .TP .I string A path. .SH EXIT STATUS The following exit values will be returned: .TP \ 0 Successful completion. .TP >0 An error occurred. .SH STANDARDS The \fIdirname\fR utility is compliant with the IEEE Std 1003.2-1992 ("POSIX.2") specification. .SH COPYRIGHT .nf Copyright (C) 2020, Jakob Wakeling MIT Licence (https://opensource.org/licenses/MIT) .fi