Home Explore Blog CI



nushell

commands/docs/bytes_reverse.md
878967954337c9c3902d950fc2971c0176cb2dd7bf6049a9000000030000048c
---
title: bytes reverse
categories: |
  bytes
version: 0.104.0
bytes: |
  Reverse the bytes in the pipeline.
usage: |
  Reverse the bytes in the pipeline.
editLink: false
contributors: false
---
<!-- This file is automatically generated. Please edit the command in https://github.com/nushell/nushell instead. -->

# `bytes reverse` for [bytes](/commands/categories/bytes.md)

<div class='command-title'>Reverse the bytes in the pipeline.</div>

## 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]`
```nu
> 0x[1F FF AA AA] | bytes reverse
Length: 4 (0x4) bytes | printable whitespace ascii_other non_ascii
00000000:   aa aa ff 1f                                          ××ו

```

Reverse bytes `0x[FF AA AA]`
```nu
> 0x[FF AA AA] | bytes reverse
Length: 3 (0x3) bytes | printable whitespace ascii_other non_ascii
00000000:   aa aa ff                                             ×××

```

Chunks
b2b6f07d (1st chunk of `commands/docs/bytes_reverse.md`)
Title: bytes reverse
Summary
Reverses the order of bytes in binary data passed through the pipeline. It can operate on binary data directly, or on data structures like records and tables by reversing the bytes at specified cell paths. The command outputs the reversed byte sequence.