23 lines
545 B
Groff
23 lines
545 B
Groff
|
.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
|