2020-05-24 08:41:30 +02:00
|
|
|
# split row
|
2019-11-28 19:33:17 +01:00
|
|
|
|
2020-05-24 08:41:30 +02:00
|
|
|
splits contents over multiple rows via the separator.
|
2019-11-28 19:33:17 +01:00
|
|
|
|
2020-05-24 08:41:30 +02:00
|
|
|
Syntax: `split row <separator>`
|
2019-11-28 19:33:17 +01:00
|
|
|
|
2020-06-23 20:21:47 +02:00
|
|
|
## Parameters
|
|
|
|
|
2019-11-28 19:33:17 +01:00
|
|
|
* `<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 08:41:30 +02:00
|
|
|
using the `split row` command.
|
2019-11-28 19:33:17 +01:00
|
|
|
|
|
|
|
```shell
|
2020-05-24 08:41:30 +02:00
|
|
|
open table.txt | split row ", "
|
2020-06-23 20:21:47 +02:00
|
|
|
───┬───
|
|
|
|
# │
|
|
|
|
───┼───
|
2020-03-13 18:23:41 +01:00
|
|
|
0 │ 4
|
|
|
|
1 │ 0
|
|
|
|
2 │ 2
|
|
|
|
3 │ 0
|
|
|
|
4 │ 7
|
|
|
|
5 │ 8
|
2020-06-23 20:21:47 +02:00
|
|
|
───┴───
|
|
|
|
```
|