.TH BASENAME 1 sbase\-VERSION .SH NAME basename \- strip leading path component .SH SYNOPSIS .B basename .I string .RI [ suffix ] .SH DESCRIPTION .B basename prints the .I string with any leading path components, and the .IR suffix , removed. .SH SEE ALSO .IR dirname (1), .IR basename (3)