W3cubDocs

/Nushell

bytes reverse for bytes

Reverse the bytes in the pipeline.

Signature

> bytes reverse {flags} ...rest

Parameters

  • ...rest: for a data structure input, reverse data at the given cell paths

Input/output types:

input output
binary binary
record record
table table

Examples

Reverse bytes 0x[1F FF AA AA]

>0x[1FFFAAAA] |bytes reverse
Length:4 (0x4) bytes|printablewhitespaceascii_othernon_ascii
00000000:aaaaff1f××ו

Reverse bytes 0x[FF AA AA]

>0x[FFAAAA] |bytes reverse
Length:3 (0x3) bytes|printablewhitespaceascii_othernon_ascii
00000000:aaaaff×××

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