mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 14:36:08 +02:00
Autogenerate missing docs (#3514)
* Autogenerate missing docs * Update ansi.md * Rename question mark command docs * Delete empty?.md
This commit is contained in:
26
docs/commands/path-basename.md
Normal file
26
docs/commands/path-basename.md
Normal file
@ -0,0 +1,26 @@
|
||||
# path basename
|
||||
Get the final component of a path
|
||||
|
||||
## Usage
|
||||
```shell
|
||||
> path basename ...args {flags}
|
||||
```
|
||||
|
||||
## Parameters
|
||||
* ...args: Optionally operate by column path
|
||||
|
||||
## Flags
|
||||
* -h, --help: Display this help message
|
||||
* -r, --replace <string>: Return original path with basename replaced by this string
|
||||
|
||||
## Examples
|
||||
Get basename of a path
|
||||
```shell
|
||||
> echo '/home/joe/test.txt' | path basename
|
||||
```
|
||||
|
||||
Replace basename of a path
|
||||
```shell
|
||||
> echo '/home/joe/test.txt' | path basename -r 'spam.png'
|
||||
```
|
||||
|
Reference in New Issue
Block a user