wrap
for filters> wrap {flags} (name)
name
: the name of the columninput | output |
---|---|
any | record |
list<any> | table |
range | table |
Wrap a list into a table with a given column name
> [123] |wrapnum
╭───┬─────╮
│# │ num │
├───┼─────┤
│0│1│
│1│2│
│2│3│
╰───┴─────╯
Wrap a range into a table with a given column name
>1..3|wrapnum
╭───┬─────╮
│# │ num │
├───┼─────┤
│0│1│
│1│2│
│2│3│
╰───┴─────╯
Copyright © 2019–2023 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/wrap.html