basename: add page
This commit is contained in:
11
pages/common/basename.md
Normal file
11
pages/common/basename.md
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
# basename
|
||||||
|
|
||||||
|
> Returns non-directory portion of a pathname.
|
||||||
|
|
||||||
|
- Show only the file name from a path:
|
||||||
|
|
||||||
|
`basename {{path/to/file}}`
|
||||||
|
|
||||||
|
- Show only the file name from a path, with a suffix removed:
|
||||||
|
|
||||||
|
`basename {{path/to/file}} {{suffix}}
|
Reference in New Issue
Block a user