2022-02-14 03:22:51 +01:00
|
|
|
---
|
|
|
|
title: skip
|
|
|
|
layout: command
|
|
|
|
version: 0.59.0
|
|
|
|
---
|
2020-06-23 20:21:47 +02:00
|
|
|
|
2022-02-14 03:22:51 +01:00
|
|
|
Skip the first n elements of the input.
|
2020-03-18 02:22:35 +01:00
|
|
|
|
2022-02-14 03:22:51 +01:00
|
|
|
## Signature
|
2020-06-23 20:21:47 +02:00
|
|
|
|
2022-02-14 03:22:51 +01:00
|
|
|
```> skip (n)```
|
2020-03-18 02:22:35 +01:00
|
|
|
|
2022-02-14 03:22:51 +01:00
|
|
|
## Parameters
|
2020-03-18 02:22:35 +01:00
|
|
|
|
2022-02-14 03:22:51 +01:00
|
|
|
- `n`: the number of elements to skip
|
2020-06-23 20:21:47 +02:00
|
|
|
|
2022-02-14 03:22:51 +01:00
|
|
|
## Examples
|
|
|
|
|
|
|
|
Skip two elements
|
2020-03-18 02:22:35 +01:00
|
|
|
```shell
|
2022-02-14 03:22:51 +01:00
|
|
|
> echo [[editions]; [2015] [2018] [2021]] | skip 2
|
2020-03-18 02:22:35 +01:00
|
|
|
```
|
|
|
|
|
2022-02-14 03:22:51 +01:00
|
|
|
Skip the first value
|
2020-03-18 02:22:35 +01:00
|
|
|
```shell
|
2022-02-14 03:22:51 +01:00
|
|
|
> echo [2 4 6 8] | skip
|
2020-06-23 20:21:47 +02:00
|
|
|
```
|
2022-02-14 03:22:51 +01:00
|
|
|
|