roll up

For filters.

Roll table rows up.

Command Type

built-in

Signature

> roll up {flags}

Flags

  • --by, -b {int}: Number of rows to roll.

Input/output types:

input output
table table

Examples

Rolls rows up

> [[a b]; [1 2] [3 4] [5 6]] | roll up
╭───┬───┬───╮
│ # │ a │ b │
├───┼───┼───┤
│ 0 │ 3 │ 4 │
│ 1 │ 5 │ 6 │
│ 2 │ 1 │ 2 │
╰───┴───┴───╯

Ported from nushell/nushell.github.io. Copyright (c) 2021 Nushell Project. MIT License.