path split

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 ]