mirror of https://github.com/CrimsonTome/tldr.git
basename: add page
parent
c0d0e38c6e
commit
9ba4a72b27
|
@ -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…
Reference in New Issue