2014-11-21 07:15:07 -05:00
|
|
|
.Dd November 21, 2014
|
|
|
|
.Dt BASENAME 1 sbase\-VERSION
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm basename
|
|
|
|
.Nd strip leading path component
|
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm basename
|
|
|
|
.Ar string
|
|
|
|
.Op Ar suffix
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
.Nm
|
2011-05-23 15:15:19 -04:00
|
|
|
prints the
|
2014-11-21 07:15:07 -05:00
|
|
|
.Ar string
|
2011-05-24 16:39:20 -04:00
|
|
|
with any leading path components, and the
|
2014-11-21 07:15:07 -05:00
|
|
|
.Ar suffix ,
|
2011-05-22 21:36:34 -04:00
|
|
|
removed.
|
2014-11-21 07:15:07 -05:00
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr dirname 1 ,
|
|
|
|
.Xr basename 3
|
|
|
|
.Sh STANDARDS
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
utility is compliant with the
|
|
|
|
.St -p1003.1-2008
|
|
|
|
specification.
|