SyntaxFix
Write A Post
Hire A Developer
Questions
It seems to depend on the details of the version of od. On OSX, use this:
od
od -t x1 -An file |tr -d '\n '
(That's print as type hex bytes, with no address. And whitespace deleted afterwards, of course.)