| Crates.io | hxx |
| lib.rs | hxx |
| version | 0.1.0 |
| created_at | 2025-05-21 18:52:11.424723+00 |
| updated_at | 2025-05-21 18:52:11.424723+00 |
| description | Minimal re-implementation of the xxd command-line utility |
| homepage | |
| repository | https://github.com/hmunye/hxx |
| max_upload_size | |
| id | 1683831 |
| size | 27,038 |
hxx is a minimal re-implementation of the xxd command-line utility.
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.
cargo install hxx
git clone https://github.com/hmunye/hxx.git
cd hxx
cargo build --release
# 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