nushell/docs/commands/each-group.md
JT bff81f24aa
Autogenerate missing docs (#3514)
* Autogenerate missing docs

* Update ansi.md

* Rename question mark command docs

* Delete empty?.md
2021-05-30 12:57:04 +12:00

406 B

each group

Runs a block on groups of group_size rows of a table at a time.

Usage

> each group <group_size> <block> {flags} 

Parameters

  • <group_size> the size of each group
  • <block> the block to run on each group

Flags

  • -h, --help: Display this help message

Examples

Echo the sum of each pair

> echo [1 2 3 4] | each group 2 { echo $it | math sum }