summaryrefslogtreecommitdiff
path: root/Base/usr/share/man/man1/basename.md
diff options
context:
space:
mode:
authorMaciej Zygmanowski <sppmacd@pm.me>2021-05-31 17:16:21 +0200
committerGunnar Beutner <gunnar@beutner.name>2021-07-03 09:08:25 +0200
commit57340dda36bf1732d94c15ef1c07ecf777b8fc6b (patch)
tree64537f09ea2647feef7b3753102558b56435e4f1 /Base/usr/share/man/man1/basename.md
parent5d8585df9718d0887699187e17320da043273b7b (diff)
downloadserenity-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.md28
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
+```