nushell/docs/commands/split-row.md

35 lines
500 B
Markdown
Raw Normal View History

2020-05-24 06:41:30 +00:00
# split row
2020-05-24 06:41:30 +00:00
splits contents over multiple rows via the separator.
2020-05-24 06:41:30 +00:00
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
```shell
> open table.txt
4, 0, 2, 0, 7, 8
```
2020-05-24 06:41:30 +00:00
using the `split row` command.
```shell
2020-05-24 06:41:30 +00:00
open table.txt | split row ", "
───┬───
# │
───┼───
0 │ 4
1 │ 0
2 │ 2
3 │ 0
4 │ 7
5 │ 8
───┴───
```