nushell/docs/commands/path_split.md
Justin Ma c0a1d18e3d
update #4455, regenerate commands' docs and update make_docs script (#4586)
* feat: update #4455, regenerate commands' docs

* chore: update make_docs script
2022-02-21 11:26:00 -06:00

412 B

title layout version
path split command 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

> '/home/viking/spam.txt' | path split

Split all paths under the 'name' column

> ls ('.' | path expand) | path split -c [ name ]