2022-02-14 03:22:51 +01:00
|
|
|
---
|
|
|
|
title: path split
|
|
|
|
layout: command
|
2022-03-04 13:10:09 +01:00
|
|
|
version: 0.59.1
|
2022-02-14 03:22:51 +01:00
|
|
|
---
|
|
|
|
|
|
|
|
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 ]
|
|
|
|
```
|