2020-03-18 02:22:35 +01:00
|
|
|
# skip
|
2020-06-23 20:21:47 +02:00
|
|
|
|
|
|
|
Skips the first 'n' rows of a table.
|
2020-03-18 02:22:35 +01:00
|
|
|
|
|
|
|
## Usage
|
2020-06-23 20:21:47 +02:00
|
|
|
|
2020-03-18 02:22:35 +01:00
|
|
|
```shell
|
|
|
|
> [input-command] | skip (n)
|
|
|
|
```
|
|
|
|
|
|
|
|
## Examples
|
|
|
|
|
2020-06-23 20:21:47 +02:00
|
|
|
If we open a file with a list of contacts, we get all of the contacts.
|
|
|
|
|
2020-03-18 02:22:35 +01:00
|
|
|
```shell
|
|
|
|
> open contacts.csv
|
|
|
|
───┬─────────┬──────┬─────────────────
|
|
|
|
# │ first │ last │ email
|
|
|
|
───┼─────────┼──────┼─────────────────
|
|
|
|
0 │ John │ Doe │ doe.1@email.com
|
|
|
|
1 │ Jane │ Doe │ doe.2@email.com
|
|
|
|
2 │ Chris │ Doe │ doe.3@email.com
|
|
|
|
3 │ Francis │ Doe │ doe.4@email.com
|
|
|
|
───┴─────────┴──────┴─────────────────
|
|
|
|
```
|
|
|
|
|
|
|
|
To ignore the first 2 contacts, we can `skip` them.
|
2020-06-23 20:21:47 +02:00
|
|
|
|
2020-03-18 02:22:35 +01:00
|
|
|
```shell
|
|
|
|
> open contacts.csv | skip 2
|
|
|
|
───┬─────────┬──────┬─────────────────
|
|
|
|
# │ first │ last │ email
|
|
|
|
───┼─────────┼──────┼─────────────────
|
|
|
|
0 │ Chris │ Doe │ doe.3@email.com
|
|
|
|
1 │ Francis │ Doe │ doe.4@email.com
|
|
|
|
───┴─────────┴──────┴─────────────────
|
2020-06-23 20:21:47 +02:00
|
|
|
```
|