first
for filters> first {flags} (rows)
rows
: starting from the front, the number of rows to returninput | output |
---|---|
binary | binary |
list<any> | list<any> |
range | any |
Return the first item of a list/table
> [123] |first
1
Return the first 2 items of a list/table
> [123] |first2
╭───┬───╮
│0│1│
│1│2│
╰───┴───╯
Return the first 2 bytes of a binary value
>0x[012345] |first2
Length:2 (0x2) bytes|printablewhitespaceascii_othernon_ascii
00000000:0123•#
Copyright © 2019–2023 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/first.html