show hex->bin conversion
[webi-installers/.git] / hexyl / README.md
1 ---
2 title: hexyl
3 homepage: https://github.com/sharkdp/hexyl
4 tagline: |
5   hexyl is a simple hex viewer for the terminal.
6 ---
7
8 ## Updating
9
10 ```bash
11 webi hexyl@stable
12 ```
13
14 Use the `@beta` tag for pre-releases.
15
16 ## Cheat Sheet
17
18 ![](https://camo.githubusercontent.com/1f71ee7031e1962b23f21c8cc89cb837e1201238/68747470733a2f2f692e696d6775722e636f6d2f4d574f3975534c2e706e67)
19
20 > It uses a colored output to distinguish different categories of bytes (NULL
21 > bytes, printable ASCII characters, ASCII whitespace characters, other ASCII
22 > characters and non-ASCII).
23
24 `hexyl` is pretty self-explanatory.
25
26 If you know that you need a _hex viewer_, then you probably already know enough
27 to see why this is particularly useful, and can figure out how to use it.
28
29 ```bash
30 echo "hello" > foo.bin
31 hexyl foo.bin
32 ```
33
34 For options, such as `--length`, `--skip`, and `--offset`, see:
35
36 ```bash
37 hexyl --help
38 ```
39
40 ### Convert hex to binary
41
42 If you have some hex (say from some server logs) that you'd like to encode back
43 to binary to view in hexyl, you can convert it with `xxd`:
44
45 ```bash
46 echo '48656c6c6f210a' > foo.hex
47 xxd -r -p foo.hex foo.bin
48 ```