diff options
author | Erik Andersen <andersen@codepoet.org> | 2000-05-10 05:00:31 +0000 |
---|---|---|
committer | Erik Andersen <andersen@codepoet.org> | 2000-05-10 05:00:31 +0000 |
commit | ac130e1dca289c431c43b6efee4b3d9f2b367c87 (patch) | |
tree | 380b189440ddc169cd4d9435147d8991da08aab2 /docs | |
parent | 0a027e6880762bfe24ffda94e5872710820ecc9d (diff) | |
download | busybox-w32-ac130e1dca289c431c43b6efee4b3d9f2b367c87.tar.gz busybox-w32-ac130e1dca289c431c43b6efee4b3d9f2b367c87.tar.bz2 busybox-w32-ac130e1dca289c431c43b6efee4b3d9f2b367c87.zip |
Add suffix stripping support to basename
-Erik
Diffstat (limited to 'docs')
-rw-r--r-- | docs/busybox.pod | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/docs/busybox.pod b/docs/busybox.pod index 6a18a0499..ea14459ef 100644 --- a/docs/busybox.pod +++ b/docs/busybox.pod | |||
@@ -71,9 +71,10 @@ uname, uniq, update, uptime, usleep, wc, whoami, yes, zcat, [ | |||
71 | 71 | ||
72 | =item basename | 72 | =item basename |
73 | 73 | ||
74 | Usage: basename [file ...] | 74 | Usage: basename FILE [SUFFIX] |
75 | 75 | ||
76 | Strips directory path and suffixes from FILE(s). | 76 | Strips directory path and suffixes from FILE. |
77 | If specified, also removes any trailing SUFFIX. | ||
77 | 78 | ||
78 | Example: | 79 | Example: |
79 | 80 | ||
@@ -81,6 +82,8 @@ Example: | |||
81 | foo | 82 | foo |
82 | $ basename /usr/local/bin/ | 83 | $ basename /usr/local/bin/ |
83 | bin | 84 | bin |
85 | $ basename /foo/bar.txt .txt | ||
86 | bar | ||
84 | 87 | ||
85 | ------------------------------- | 88 | ------------------------------- |
86 | 89 | ||
@@ -1878,4 +1881,4 @@ Enrique Zanardi <ezanardi@ull.es> | |||
1878 | 1881 | ||
1879 | =cut | 1882 | =cut |
1880 | 1883 | ||
1881 | # $Id: busybox.pod,v 1.28 2000/05/05 19:49:33 erik Exp $ | 1884 | # $Id: busybox.pod,v 1.29 2000/05/10 05:00:31 erik Exp $ |