Refactor basename.1

This commit is contained in:
FRIGN 2015-02-28 15:09:47 +01:00
parent e7c33c4af3
commit 5be621dcf2

View File

@ -1,19 +1,20 @@
.Dd November 21, 2014 .Dd February 28, 2015
.Dt BASENAME 1 .Dt BASENAME 1
.Os sbase .Os sbase
.Sh NAME .Sh NAME
.Nm basename .Nm basename
.Nd strip leading path components .Nd strip leading directory components of a path
.Sh SYNOPSIS .Sh SYNOPSIS
.Nm .Nm
.Ar path .Ar path
.Op Ar suffix .Op Ar suffix
.Sh DESCRIPTION .Sh DESCRIPTION
.Nm .Nm
prints the writes
.Ar path .Ar path
without leading path components and without leading directory components and
.Ar suffix . .Ar suffix
to stdout.
.Sh SEE ALSO .Sh SEE ALSO
.Xr dirname 1 , .Xr dirname 1 ,
.Xr basename 3 .Xr basename 3