nushell/docs/commands/split-by.md
Justin Ma c0a1d18e3d
update #4455, regenerate commands' docs and update make_docs script (#4586)
* feat: update #4455, regenerate commands' docs

* chore: update make_docs script
2022-02-21 11:26:00 -06:00

32 lines
625 B
Markdown

---
title: split-by
layout: command
version: 0.59.0
---
Create a new table splitted.
## Signature
```> split-by (splitter)```
## Parameters
- `splitter`: the splitter value to use
## Examples
split items by column named "lang"
```shell
>
{
'2019': [
{ name: 'andres', lang: 'rb', year: '2019' },
{ name: 'jt', lang: 'rs', year: '2019' }
],
'2021': [
{ name: 'storm', lang: 'rs', 'year': '2021' }
]
} | split-by lang
```