W3cubDocs

/Nushell

bytes length for bytes

Output the length of any bytes in the pipeline.

Signature

> bytes length {flags} ...rest

Parameters

  • ...rest: for a data structure input, find the length of data at the given cell paths

Input/output types:

input output
binary int
list<binary> list<int>
record record
table table

Examples

Return the length of a binary

>0x[1FFFAAAB] |bytes length
4

Return the lengths of multiple binaries

> [0x[1FFFAAAB] 0x[1F]] |bytes length
╭───┬───╮
04
11
╰───┴───╯

Copyright © 2019–2023 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/bytes_length.html