From: AJ ONeal Date: Wed, 15 Jul 2020 04:23:12 +0000 (+0000) Subject: show hex->bin conversion X-Git-Url: https://git.josue.xyz/?a=commitdiff_plain;h=d56006ef48ee1d3f600dbca3529e20b3a1846b9d;p=webi-installers%2F.git show hex->bin conversion --- 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 +```