Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

$ od -cx file

or

$ other_command_or_pipeline | od -cx

is from early versions of Unix. Prints both character and hexadecimal representation of each byte in the input.

$ man od



This isn't nearly as pretty and usable as hexyl's output IMO, but always awesome to have the more readily available method!


Thanks. Yes, od's ubiquity on Unix was the reason why I mentioned it.

And right, it's output has issues for some uses.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: