BASENAME(1L) BASENAME(1L)
basename - strip directory and suffix from filenames
S
\bSY
\bYN
\bNO
\bOP
\bPS
\bSI
\bIS
\bS
b
\bba
\bas
\bse
\ben
\bna
\bam
\bme
\be name [suffix]
D
\bDE
\bES
\bSC
\bCR
\bRI
\bIP
\bPT
\bTI
\bIO
\bON
\bN
This manual page documents the GNU version of b
\bba
\bas
\bse
\ben
\bna
\bam
\bme
\be.
The b
\bba
\bas
\bse
\ben
\bna
\bam
\bme
\be command removes any leading path from _
\bn_
\ba_
\bm_
\be;
If _
\bs_
\bu_
\bf_
\bf_
\bi_
\bx is specified and is identical to the end of
_
\bn_
\ba_
\bm_
\be, it is removed from _
\bn_
\ba_
\bm_
\be as well. b
\bba
\bas
\bse
\ben
\bna
\bam
\bme
\be prints
the resulting name on the standard output.