An open API service indexing awesome lists of open source software.

https://github.com/code-barru/rrd

xxd cli implementation in Rust!
https://github.com/code-barru/rrd

rust xxd

Last synced: 7 months ago
JSON representation

xxd cli implementation in Rust!

Awesome Lists containing this project

README

          

# RRD

Display hexadump in the same way xxd would.

## Example

````sh
00000000: 2320 5252 440d 0a0d 0a44 6973 706c 6179 # RRD....Display
00000010: 2068 6578 6164 756d 7020 696e 2074 6865 hexadump in the
00000020: 2073 616d 6520 7761 7920 7878 6420 776f same way xxd wo
00000030: 756c 642e 0d0a 0d0a 6060 6073 680d 0a55 uld.....```sh..U
00000040: 7361 6765 3a20 7272 642e 6578 6520 5b4f sage: rrd.exe [O
00000050: 5054 494f 4e53 5d20 3c49 4e50 5554 3e20 PTIONS]
00000060: 5b4f 5554 5055 545d 0d0a 0d0a 4172 6775 [OUTPUT]....Argu
00000070: 6d65 6e74 733a 0d0a 2020 3c49 4e50 5554 ments:.. The input fi
...
````

## Usage

```sh
Usage: rrd.exe [OPTIONS] [OUTPUT]

Arguments:
The input file to read
[OUTPUT]

Options:
-a, --addr-len The size of bytes read per lines [default: 0]
-c, --columns The number of columns [default: 16]
-g, --group The number of bytes to group [default: 2]
-l, --len Stop after N bytes [default: 0]
-f, --format Output format [default: h] [possible values: b, c, h, ps]
-r, --reverse Reverse the output
-s, --skip Skip N bytes [default: 0]
-h, --help Print help
-V, --version Print version
```

> [!WARNING]
> It may have so padding issues.