diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2026-01-21 22:52:54 +0100 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2026-01-21 22:52:54 +0100 |
| commit | dcacc00e3750300617ba6e16eb346713f91a783a (patch) | |
| tree | 38e2d4fb5ed9d119711d4295c6eda4b014af73fd /examples/redis-unstable/deps/lua/test/xd.lua | |
| parent | 58dac10aeb8f5a041c46bddbeaf4c7966a99b998 (diff) | |
| download | crep-dcacc00e3750300617ba6e16eb346713f91a783a.tar.gz | |
Remove testing data
Diffstat (limited to 'examples/redis-unstable/deps/lua/test/xd.lua')
| -rw-r--r-- | examples/redis-unstable/deps/lua/test/xd.lua | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/examples/redis-unstable/deps/lua/test/xd.lua b/examples/redis-unstable/deps/lua/test/xd.lua deleted file mode 100644 index ebc3eff..0000000 --- a/examples/redis-unstable/deps/lua/test/xd.lua +++ /dev/null | |||
| @@ -1,14 +0,0 @@ | |||
| 1 | -- hex dump | ||
| 2 | -- usage: lua xd.lua < file | ||
| 3 | |||
| 4 | local offset=0 | ||
| 5 | while true do | ||
| 6 | local s=io.read(16) | ||
| 7 | if s==nil then return end | ||
| 8 | io.write(string.format("%08X ",offset)) | ||
| 9 | string.gsub(s,"(.)", | ||
| 10 | function (c) io.write(string.format("%02X ",string.byte(c))) end) | ||
| 11 | io.write(string.rep(" ",3*(16-string.len(s)))) | ||
| 12 | io.write(" ",string.gsub(s,"%c","."),"\n") | ||
| 13 | offset=offset+16 | ||
| 14 | end | ||
