diff options
| author | Charles.Forsyth <devnull@localhost> | 2006-12-22 20:52:35 +0000 |
|---|---|---|
| committer | Charles.Forsyth <devnull@localhost> | 2006-12-22 20:52:35 +0000 |
| commit | 46439007cf417cbd9ac8049bb4122c890097a0fa (patch) | |
| tree | 6fdb25e5f3a2b6d5657eb23b35774b631d4d97e4 /man/1/basename | |
| parent | 37da2899f40661e3e9631e497da8dc59b971cbd0 (diff) | |
20060303-partial
Diffstat (limited to 'man/1/basename')
| -rw-r--r-- | man/1/basename | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/man/1/basename b/man/1/basename new file mode 100644 index 00000000..914f799b --- /dev/null +++ b/man/1/basename @@ -0,0 +1,40 @@ +.TH BASENAME 1 +.SH NAME +basename \- strip file name affixes +.SH SYNOPSIS +.B basename +[ +.B -d +] +.I string +[ +.I suffix +] +.SH DESCRIPTION +.I Basename +deletes 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. +.PP +The +.B -d +option instead prints the directory component, +that is, +.I string +up 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) |
