hxx 0.1.0

Minimal re-implementation of the xxd command-line utility
Documentation
  • Coverage
  • 100%
    12 out of 12 items documented3 out of 3 items with examples
  • Size
  • Source code size: 26.57 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.72 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • hmunye/hxx
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • hmunye

hxx

hxx is a minimal re-implementation of the xxd command-line utility.

Usage

Usage:
      hxx [options] [infile [outfile]]
   or
      hxx -r [infile [outfile]]
Options:
   -c  cols      format <cols> octets per line (value must be in range 1..=256). Default 16.
   -g  bytes     number of octets per group in normal output (value must be in range 1..=256). Default 2.
   -r            reverse operation: convert (or patch) hexdump into binary.
   -h            print this summary.
   -v            show version.

Installation

From crates.io

cargo install hxx

From Source

git clone https://github.com/hmunye/hxx.git

cd hxx

cargo build --release

Example

# Hex dump a file to stdout
hxx myfile.bin

# Hex dump with 32 bytes per line and 4-byte groupings to stdout
hxx -c 32 -g 4 myfile.bin

# Read from stdin and hex dump to stdout
cat myfile.bin | hxx

# Read from stdin and hex dump to file
cat myfile.bin | hxx myfile.hex

# Reverse a hex dump back into a binary file
hxx -r myfile.hex myfile_out.bin