Hi, the other day I needed to observe some binary data that comes in variable-length chunks. I've been able to pipe it to
xxd, but it will only print out complete lines of 32 bytes in hex.
I wanted to observe the bytes as they come in, so I searched for such a solution but found none. So I made such a solution myself: https://pastebin.com/RWtGaDkh
Do you guys think this will be useful? I'm thinking of putting it up on GitHub. Or have I reinvented the wheel?
Btw: I was actually trying to observe how
dig queries a name server. I've been able to listen to it by using
nc and pipe the output to
xxd. I realize this may be an XY problem.