Crates.io | mhv |
lib.rs | mhv |
version | 0.3.4 |
source | src |
created_at | 2023-11-23 19:30:34.963613 |
updated_at | 2024-01-15 21:24:18.977817 |
description | A minimalist hex viewer |
homepage | |
repository | https://github.com/jgardona/mhv |
max_upload_size | |
id | 1046470 |
size | 1,441,145 |
The color legend
⬛ Null byte
🟦 ASCII Printable Characters
🟩 Space Characters
🟩 Control Characters
🟥 ASCII Extended Codes
Install
$ cargo install mhv
❯ mhv -h
A minimalist hex viewer
Usage: mhv [OPTIONS] <FILENAME>
Arguments:
<FILENAME> Target file
Options:
-s, --skip <N> Skip `N` bytes of the input. The `N` argument can also
include an unit (see `--length` for details). [default: 0]
-l, --length <N> Read `N` bytes from the input. None for full read. The `N`
argument can be a unit with a decimal prefix(kb, mb).
Examples: --length 3kb, -l3kb, --length 1mb...
N unis are kb(1000), K(1024), mb(1000 * 1000), M(1024 * 1024),
and a prefix 0x for hexadecimal, `0x0a`
-n, --no-squeezing Displays all input data. Otherwise any number of output
lines which would be identical to the last one are replaced
with a line comprised of a single asterisk
-h, --help Print help
-V, --version Print version