https://github.com/gedex/zd
xxd written in Zig
https://github.com/gedex/zd
Last synced: about 1 year ago
JSON representation
xxd written in Zig
- Host: GitHub
- URL: https://github.com/gedex/zd
- Owner: gedex
- Created: 2025-04-06T08:27:26.000Z (over 1 year ago)
- Default Branch: trunk
- Last Pushed: 2025-04-07T00:14:36.000Z (over 1 year ago)
- Last Synced: 2025-05-14T17:14:42.191Z (about 1 year ago)
- Language: Zig
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
zd
==
`xxd` clone without options.
Inspired by https://www.youtube.com/watch?v=pnnx1bkFXng.
### Build
Requires Zig 0.13.0.
```
zig buiild
```
### Usage
```
Usage: zd
```
```
dd if=/dev/urandom of=/tmp/test.bin bs=8 count=5
./zig-out/bin/zd /tmp/test.bin
00000000: 0023 8a55 0f5a 89f5 36af 5990 e4b0 ae23 .#.U.Z..6.Y....#
00000010: 3de6 4ab3 71cf add7 a24f 2f78 d435 f282 =.J.q....O/x.5..
00000020: 8fcd 04c2 52f3 6a75 ....R.ju
# Output from xxd
xxd /tmp/test.bin
00000000: 0023 8a55 0f5a 89f5 36af 5990 e4b0 ae23 .#.U.Z..6.Y....#
00000010: 3de6 4ab3 71cf add7 a24f 2f78 d435 f282 =.J.q....O/x.5..
00000020: 8fcd 04c2 52f3 6a75 ....R.ju
```