mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 19:04:55 +02:00
commit
575bb74103
1 changed files with 11 additions and 0 deletions
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}}`
|
Loading…
Add table
Reference in a new issue