mirror of
https://github.com/nushell/nushell.git
synced 2024-12-11 09:43:24 +01:00
8c0a2d3c15
* Finish updating * a couple improvements * Update renames * cleanup examples
29 lines
413 B
Markdown
29 lines
413 B
Markdown
---
|
|
title: path split
|
|
layout: command
|
|
version: 0.59.0
|
|
---
|
|
|
|
Split a path into parts by a separator.
|
|
|
|
## Signature
|
|
|
|
```> path split --columns```
|
|
|
|
## Parameters
|
|
|
|
- `--columns {table}`: Optionally operate by column path
|
|
|
|
## Examples
|
|
|
|
Split a path into parts
|
|
```shell
|
|
> '/home/viking/spam.txt' | path split
|
|
```
|
|
|
|
Split all paths under the 'name' column
|
|
```shell
|
|
> ls ('.' | path expand) | path split -c [ name ]
|
|
```
|
|
|