Thanks for the sed idea. (I learned something new today, can I go home now?) ;-)
That will work in most (99%?) cases; however with non-printable characters, it's still not quite lined up right. Here's an example: 0000000 \n \v \a 024 \r \n l i n e 2 : ! @ 0a 0b 07 14 0d 0a 6c 69 6e 65 20 32 3a 20 21 40 Any further thoughts? I could obviously reverse the sed logic so it adds an extra space between each of the hex characters, but then I can't fit as many characters on one line... If it's appropriate to make such a change, it would still be nice to have the -tcX suggestion implemented. However, I can easily make do with the sed filter approach. Thanks! --Kevin -----Original Message----- From: Jim Meyering [mailto:[EMAIL PROTECTED]] Thanks for the suggestion, but how about just filtering the od output through a little sed filter instead: $ printf 'this is line one\nline two\n'|od -tcx1|sed '/^[0-9]/s/ \( .\)/\1/g' 0000000 t h i s i s l i n e o n e 74 68 69 73 20 69 73 20 6c 69 6e 65 20 6f 6e 65 0000020 \n l i n e t w o \n 0a 6c 69 6e 65 20 74 77 6f 0a 0000032 _______________________________________________ Bug-textutils mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-textutils