shitbox/pkg/usr/share/man/man1/basename.1

23 lines
545 B
Groff
Raw Normal View History

2023-02-13 10:30:46 -05:00
.ie \n(.g .ds Aq \(aq
.el .ds Aq '
.TH basename 1 "basename "
.SH NAME
basename \- Print NAME with any leading directory components removed.
.SH SYNOPSIS
\fBbasename\fR [\fB\-h\fR|\fB\-\-help\fR] <\fINAME\fR> [\fISUFFIX\fR]
.SH DESCRIPTION
Print NAME with any leading directory components removed.
If specified, also remove a trailing SUFFIX.
.SH OPTIONS
.TP
\fB\-h\fR, \fB\-\-help\fR
Print help (see a summary with \*(Aq\-h\*(Aq)
.TP
<\fINAME\fR>
the filename to process
.TP
[\fISUFFIX\fR]
the suffix to be removed
.SH AUTHORS
Nathan Fisher