mirror of
https://github.com/danbulant/nushell
synced 2026-05-19 12:29:03 +00:00
605 B
605 B
| title | layout | version |
|---|---|---|
| split column | command | 0.59.1 |
splits contents across multiple columns via the separator.
Signature
> split column (separator) ...rest --collapse-empty
Parameters
separator: the character that denotes what separates columns...rest: column names to give the new columns--collapse-empty: remove empty columns
Examples
Split a string into columns by the specified separator
> echo 'a--b--c' | split column '--'
Split a string into columns of char and remove the empty columns
> echo 'abc' | split column -c ''