nushell/docs/commands/range.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

405 B

range

Return only the selected rows.

Usage

> range <rows> {flags} 

Parameters

  • <rows> range of rows to return: Eg) 4..7 (=> from 4 to 7)

Flags

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

Examples

Return rows 1 through 3

> echo [1 2 3 4 5] | range 1..3

Return the third row from the end, through to the end

> echo [1 2 3 4 5] | range (-3..)