mirror of
https://github.com/nushell/nushell.git
synced 2024-11-27 02:44:01 +01:00
26 lines
395 B
Markdown
26 lines
395 B
Markdown
|
# path split
|
||
|
Split a path into parts by a separator.
|
||
|
|
||
|
## Usage
|
||
|
```shell
|
||
|
> path split ...args {flags}
|
||
|
```
|
||
|
|
||
|
## Parameters
|
||
|
* ...args: Optionally operate by column path
|
||
|
|
||
|
## Flags
|
||
|
* -h, --help: Display this help message
|
||
|
|
||
|
## Examples
|
||
|
Split a path into parts
|
||
|
```shell
|
||
|
> echo '/home/viking/spam.txt' | path split
|
||
|
```
|
||
|
|
||
|
Split all paths under the 'name' column
|
||
|
```shell
|
||
|
> ls | path split name
|
||
|
```
|
||
|
|