docs: update
This commit is contained in:
@@ -39,7 +39,7 @@ Alternative to the `basename` command.
|
|||||||
|
|
||||||
```sh
|
```sh
|
||||||
basename() {
|
basename() {
|
||||||
# Usage: basename "path"
|
# Usage: basename "path" ["suffix"]
|
||||||
dir=${1%${1##*[!/]}}
|
dir=${1%${1##*[!/]}}
|
||||||
dir=${dir##*/}
|
dir=${dir##*/}
|
||||||
dir=${dir%"$2"}
|
dir=${dir%"$2"}
|
||||||
|
|||||||
Reference in New Issue
Block a user