mirror of
https://github.com/nushell/nushell.git
synced 2024-11-29 20:03:54 +01:00
29 lines
470 B
Markdown
29 lines
470 B
Markdown
---
|
|
title: every
|
|
layout: command
|
|
version: 0.59.1
|
|
---
|
|
|
|
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
|
|
```shell
|
|
> [1 2 3 4 5] | every 2
|
|
```
|
|
|
|
Skip every second row
|
|
```shell
|
|
> [1 2 3 4 5] | every 2 --skip
|
|
```
|