Charles.Forsyth20060303-partialeea662d19 years agoHistory
40 lines · 597 B · Text
RawDownload
.TH BASENAME 1 .SH NAMEbasename \- strip file name affixes.SH SYNOPSIS.B basename[.B -d].I string[.I suffix].SH DESCRIPTION.I Basenamedeletes any prefix ending in slash.RB ( / )and the.IR suffix ,if present in.IR string ,from.IR string ,and prints the result on the standard output..PPThe.B -doption instead prints the directory component,that is,.I stringup to but not including the final slash.If the string contains no slash,the current directory name.L .is printed..SH SOURCE.B /appl/cmd/basename.b.SH SEE ALSO.IR cleanname (1),.IR pwd (1),.IR names (2)