2011-05-23 02:36:34 +01:00
|
|
|
.TH BASENAME 1 sbase\-VERSION
|
|
|
|
.SH NAME
|
2011-05-24 21:39:20 +01:00
|
|
|
basename \- strip leading path component
|
2011-05-23 02:36:34 +01:00
|
|
|
.SH SYNOPSIS
|
|
|
|
.B basename
|
2012-04-23 15:50:47 +02:00
|
|
|
.RB [ \-a ]
|
|
|
|
.RB [ \-z ]
|
|
|
|
.RB [ \-s
|
|
|
|
.IR suffix ]
|
2011-05-23 02:36:34 +01:00
|
|
|
.I string
|
|
|
|
.RI [ suffix ]
|
|
|
|
.SH DESCRIPTION
|
|
|
|
.B basename
|
2011-05-23 20:15:19 +01:00
|
|
|
prints the
|
2011-05-23 02:36:34 +01:00
|
|
|
.I string
|
2011-05-24 21:39:20 +01:00
|
|
|
with any leading path components, and the
|
2011-05-23 02:36:34 +01:00
|
|
|
.IR suffix ,
|
|
|
|
removed.
|
2012-04-23 15:50:47 +02:00
|
|
|
.SH OPTIONS
|
|
|
|
.TP
|
|
|
|
.BI \-a
|
|
|
|
multiple arguments will each be treated as strings
|
|
|
|
.TP
|
|
|
|
.BI \-s " suffix"
|
|
|
|
specifies the suffix that should be removed
|
|
|
|
.TP
|
|
|
|
.BI \-z
|
|
|
|
output will be separated with NUL
|
|
|
|
.TP
|
2011-05-25 18:29:46 +01:00
|
|
|
.SH SEE ALSO
|
2011-05-26 16:18:42 -01:00
|
|
|
.IR dirname (1),
|
2011-05-25 18:29:46 +01:00
|
|
|
.IR basename (3)
|