mirror of
https://github.com/dylanaraps/pure-bash-bible.git
synced 2025-12-17 07:54:19 +01:00
docs: update
This commit is contained in:
@@ -39,7 +39,7 @@ Alternative to the `basename` command.
|
||||
|
||||
```sh
|
||||
basename() {
|
||||
# Usage: basename "path"
|
||||
# Usage: basename "path" ["suffix"]
|
||||
dir=${1%${1##*[!/]}}
|
||||
dir=${dir##*/}
|
||||
dir=${dir%"$2"}
|
||||
|
||||
Reference in New Issue
Block a user