From d56006ef48ee1d3f600dbca3529e20b3a1846b9d Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Wed, 15 Jul 2020 04:23:12 +0000 Subject: [PATCH] show hex->bin conversion --- hexyl/README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/hexyl/README.md b/hexyl/README.md index 2628f29..2cef122 100644 --- a/hexyl/README.md +++ b/hexyl/README.md @@ -36,3 +36,13 @@ For options, such as `--length`, `--skip`, and `--offset`, see: ```bash hexyl --help ``` + +### Convert hex to binary + +If you have some hex (say from some server logs) that you'd like to encode back +to binary to view in hexyl, you can convert it with `xxd`: + +```bash +echo '48656c6c6f210a' > foo.hex +xxd -r -p foo.hex foo.bin +``` -- 2.25.1