mirror of
https://github.com/RGBCube/serenity
synced 2025-05-16 19:35:08 +00:00
29 lines
473 B
Markdown
29 lines
473 B
Markdown
## Name
|
|
|
|
basename - strip directory names from path
|
|
|
|
## Synopsis
|
|
|
|
```**sh
|
|
$ basename <path> [suffix]
|
|
```
|
|
|
|
## 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
|
|
* `suffix`: Suffix to strip from name
|
|
|
|
## Examples
|
|
|
|
```sh
|
|
$ basename /
|
|
/
|
|
$ basename ~
|
|
anon
|
|
$ basename Source/js/array.js
|
|
array.js
|
|
```
|