mirror of
https://github.com/nushell/nushell.git
synced 2024-12-27 17:39:15 +01:00
1.3 KiB
1.3 KiB
skip
Skips the first 'n' rows of a table.
Usage
> [input-command] | skip (n)
Examples
If we open a file with a list of contacts, we get all of the contacts.
> 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.
> open contacts.csv | skip 2
───┬─────────┬──────┬─────────────────
# │ first │ last │ email
───┼─────────┼──────┼─────────────────
0 │ Chris │ Doe │ doe.3@email.com
1 │ Francis │ Doe │ doe.4@email.com
───┴─────────┴──────┴─────────────────