nushell/docs/commands/split-to-row.md
2020-05-24 02:02:44 -05:00

563 B

split row

splits contents over multiple rows via the separator.

Syntax: split row <separator>

Parameters:

  • <separator> the character that denotes what separates rows

Examples

We can build a table from a file that looks like this

> open table.txt
4, 0, 2, 0, 7, 8

using the split row command.

open table.txt | split row ", "
━━━┯━━━━━━━━━
 # │ <value>
───┼─────────
 04
 10
 22
 30
 47
 58
━━━┷━━━━━━━━━