diff options
author | Maciej Zygmanowski <sppmacd@pm.me> | 2021-05-31 17:16:21 +0200 |
---|---|---|
committer | Gunnar Beutner <gunnar@beutner.name> | 2021-07-03 09:08:25 +0200 |
commit | 57340dda36bf1732d94c15ef1c07ecf777b8fc6b (patch) | |
tree | 64537f09ea2647feef7b3753102558b56435e4f1 /Base/usr/share/man/man1/basename.md | |
parent | 5d8585df9718d0887699187e17320da043273b7b (diff) | |
download | serenity-57340dda36bf1732d94c15ef1c07ecf777b8fc6b.zip |
Base: Add more manpages for command-line utilities
Diffstat (limited to 'Base/usr/share/man/man1/basename.md')
-rw-r--r-- | Base/usr/share/man/man1/basename.md | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Base/usr/share/man/man1/basename.md b/Base/usr/share/man/man1/basename.md new file mode 100644 index 0000000000..0af7f4d1b5 --- /dev/null +++ b/Base/usr/share/man/man1/basename.md @@ -0,0 +1,28 @@ +## Name + +basename - strip directory names from path + +## Synopsis + +```**sh +$ basename <path> +``` + +## Description + +`basename` prints basename (filename, stripped of preceding directory names) of specified `path` to standard output. The path does not have to exist. + +## Arguments + +* `path`: The path which we want to get basename of + +## Examples + +```sh +$ basename / +/ +$ basename ~ +anon +$ basename Source/js/array.js +array.js +``` |