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

470 B

title layout version
every command 0.59.0

Show (or skip) every n-th row, starting from the first one.

Signature

> every (stride) --skip

Parameters

  • stride: how many rows to skip between (and including) each row returned
  • --skip: skip the rows that would be returned, instead of selecting them

Examples

Get every second row

> [1 2 3 4 5] | every 2

Skip every second row

> [1 2 3 4 5] | every 2 --skip