skip
for filters> skip {flags} (n)
n
: the number of elements to skipinput | output |
---|---|
list<any> | list<any> |
table | table |
Skip the first value of a list
> [2468] |skip1
╭───┬───╮
│0│4│
│1│6│
│2│8│
╰───┴───╯
Skip two rows of a table
> [[editions]; [2015] [2018] [2021]] |skip2
╭───┬──────────╮
│# │ editions │
├───┼──────────┤
│0│2021│
╰───┴──────────╯
To skip specific numbered rows, try drop nth
. To skip specific named columns, try reject
.
name | type | usage |
---|---|---|
skip until |
Builtin | Skip elements of the input until a predicate is true. |
skip while |
Builtin | Skip elements of the input while a predicate is true. |
Copyright © 2019–2023 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/skip.html