I'm trying to understand the formatting option of hexdump. I have read the man page and it says that I can tell it what format to output the data in by using the -e
option. However, I can not for the life of me understand the code for the option. For now, I'm just trying to have it print random lines from /dev/random like this:
6568:6C6C:7565:7568:2E62:716D:2E2C:7563
(Basically, a psuedo IPv6 address.) However, I would really like to understand the formatting strings, not just have one that does the trick. I have tried reading the man page and it wasn't much help--it seemed to refer to it being similar to C code. Well, I have almost no experience with C, so I'm stuck. Can somebody please explain this?