.TH BASENAME 1 2022-03-06 "OMKOV coreutils" "General Commands Manual" .SH NAME basename \(em return the non-directory portion of a path .SH SYNOPSYS \fBbasename\fR \fIstring\fR [\fIsuffix\fR] .SH DESCRIPTION Print the non-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 operands are supported: .TP .I string A path. .TP .I suffix A suffix to be removed from the output. .SH EXIT STATUS The following exit values will be returned: .TP \ 0 Successful completion. .TP >0 An error occurred. .SH STANDARDS The \fIbasename\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