]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/civetweb/src/third_party/lua-5.1.5/test/xd.lua
import quincy beta 17.1.0
[ceph.git] / ceph / src / civetweb / src / third_party / lua-5.1.5 / test / xd.lua
diff --git a/ceph/src/civetweb/src/third_party/lua-5.1.5/test/xd.lua b/ceph/src/civetweb/src/third_party/lua-5.1.5/test/xd.lua
deleted file mode 100644 (file)
index ebc3eff..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
--- hex dump
--- usage: lua xd.lua < file
-
-local offset=0
-while true do
- local s=io.read(16)
- if s==nil then return end
- io.write(string.format("%08X  ",offset))
- string.gsub(s,"(.)",
-       function (c) io.write(string.format("%02X ",string.byte(c))) end)
- io.write(string.rep(" ",3*(16-string.len(s))))
- io.write(" ",string.gsub(s,"%c","."),"\n") 
- offset=offset+16
-end