.TH BASENAME 1 sbase\-VERSION .SH NAME basename \- strip directory from filename .SH SYNOPSIS .B basename .I string .RI [ suffix ] .SH DESCRIPTION .B basename prints the .I string with any leading directory components, and the .IR suffix , removed.