Xd.lua

The script reads a file and prints its contents in a structured 8-digit hexadecimal offset followed by 16 bytes per line.

While the snippet provided is for Lua 5.1, it can be adapted for newer versions. xd.lua

If you are looking for a more advanced tool, I can suggest Lua-based libraries for file I/O or data manipulation. The script reads a file and prints its

The basic script requires a terminal or environment that can interpret the standard output properly. It does not provide an interactive "editor" interface, only a display. xd.lua

Is it possible to perform a hexdump in Lua code - Stack Overflow