W3cubDocs

/Nushell

bytes for bytes

Various commands for working with byte data.

Signature

> bytes {flags}

Input/output types:

input output
nothing string

Notes

You must use one of the following subcommands. Using this command as-is will only produce this help message.

Subcommands:

name type usage
bytes add Builtin Add specified bytes to the input.
bytes at Builtin Get bytes defined by a range
bytes build Builtin Create bytes from the arguments.
bytes collect Builtin Concatenate multiple binary into a single binary, with an optional separator between each.
bytes ends-with Builtin Check if bytes ends with a pattern.
bytes index-of Builtin Returns start index of first occurrence of pattern in bytes, or -1 if no match.
bytes length Builtin Output the length of any bytes in the pipeline.
bytes remove Builtin Remove bytes.
bytes replace Builtin Find and replace binary.
bytes reverse Builtin Reverse the bytes in the pipeline.
bytes starts-with Builtin Check if bytes starts with a pattern.

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