# hx

A faster version of `hexdump -C` that I constantly use.

Comparison on a 1.8Gb file, `time <command> >/dev/null`:

| hexdump -C file | hx file        |
| real 3m56.715s  | real 0m6.111s  |
| user 3m55.839s  | user 0m5.235s  |
| sus  0m0.847s   | sys  0m0.489s  |

Around 40 times faster, eh?

# Building/installing

Plan 9: clone the repo, do `mk install`.

UNIX-like operating systems: `gcc -Wall -Wextra -O2 -s -g0 hx.c -o hx`

# Notes

 * hx will print data as soon as it is available (if used on pipes), without buffering.
Last 5 commits (shortlog)
Date Author Short message Commit hash
2020-05-07 Sigrid update install instructions b66196c7ba0254fbda7ade0f2c3233dfbbf6215b
2020-02-19 Sigrid dump stdin if no arguments provided fe80726c19afaff3021994f66107a21baf1efa01
2019-12-29 Sigrid don't use printf, it buffers fd724962d1f6d325da44fc2db7425939f8fde79e
2019-12-28 Sigrid port to plan 9 eaac0f22ca88dbe40afa83fbfaf36da0c6f7821b
2019-12-28 Sigrid fix ascii indentation when stopped exactly in the middle of the line fbfd677a4f6cd2fac688dce5d39cc128be58524f
Files (browse)