mirror of
https://github.com/nushell/nushell.git
synced 2024-11-29 03:44:19 +01:00
5ca9e12b7f
* Remove EOL whitespace in files other than docs * Break paragraphs into lines See http://rhodesmill.org/brandon/2012/one-sentence-per-line/ for the rationale * Fix various typos * Remove EOL whitespace in docs/commands/*.md
34 lines
566 B
Markdown
34 lines
566 B
Markdown
# split-row
|
|
|
|
Split row 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
|
|
|
|
```shell
|
|
> open table.txt
|
|
4, 0, 2, 0, 7, 8
|
|
|
|
```
|
|
|
|
using the `split-row` command.
|
|
|
|
```shell
|
|
open table.txt | split-row ", "
|
|
━━━┯━━━━━━━━━
|
|
# │ <value>
|
|
───┼─────────
|
|
0 │ 4
|
|
1 │ 0
|
|
2 │ 2
|
|
3 │ 0
|
|
4 │ 7
|
|
5 │ 8
|
|
━━━┷━━━━━━━━━
|
|
``` |