every
for filters> every {flags} (stride)
--skip, -s
: skip the rows that would be returned, instead of selecting themstride
: how many rows to skip between (and including) each row returnedinput | output |
---|---|
list<any> | list<any> |
Get every second row
> [12345] |every2
╭───┬───╮
│0│1│
│1│3│
│2│5│
╰───┴───╯
Skip every second row
> [12345] |every2--skip
╭───┬───╮
│0│2│
│1│4│
╰───┴───╯
Copyright © 2019–2023 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/every.html