940 reputation
11022
bio website
location
age
visits member for 3 years, 1 month
seen Jul 21 at 1:19

Jun
12
answered Achieving hexdump-like format, that includes binary strings, on the command line?
Jun
12
comment Achieving hexdump-like format, that includes binary strings, on the command line?
Thanks for that , @mikeserv - nice to keep this in mind, but it still takes some extra work to get it formatted per line (with offset address into the file etc) as with hexdump. Cheers!
Jun
12
comment Achieving hexdump-like format, that includes binary strings, on the command line?
Many thanks for the answer, @Graeme - I edited your post and added the output; am accepting this for now - but if anyone posts a more convenient approach, I might eventually move the accept. Cheers!
Jun
12
revised Achieving hexdump-like format, that includes binary strings, on the command line?
added example output
Jun
12
accepted Achieving hexdump-like format, that includes binary strings, on the command line?
Jun
12
suggested suggested edit on Achieving hexdump-like format, that includes binary strings, on the command line?
Jun
12
comment Achieving hexdump-like format, that includes binary strings, on the command line?
@0xC0000022L - Just checked xxd with: echo -e '\x00\x01\x02\x03' | xxd -c 2 -b; the presence of the -b switch changes everything to binary string, and so apparently it cannot be "mixed" with hexadecimal.
Jun
12
comment Achieving hexdump-like format, that includes binary strings, on the command line?
Thanks for the comment, @0xC0000022L - yeah, I didn't fully think through that with the endianness :). I did check xxd out, and there is a -b: Switch to bits (binary digits) dump,, but I cannot find an example where that output would be mixed with hex (as I gave an example for in the OP); if someone can post an example for that with xxd, that would be an acceptable answer. Cheers!
Jun
12
asked Achieving hexdump-like format, that includes binary strings, on the command line?
Jun
4
awarded  Yearling
May
7
awarded  Popular Question
Apr
2
awarded  Popular Question
Mar
31
awarded  Notable Question
Mar
27
awarded  Popular Question
Mar
23
revised How do I remove “permission denied” printout statements from the find program?
added clarification
Mar
23
answered How do I remove “permission denied” printout statements from the find program?
Mar
22
awarded  Nice Question
Mar
15
revised Custom help / man -like command (for reminders)
corrected script bash completion
Mar
12
answered Custom help / man -like command (for reminders)
Mar
11
revised Custom help / man -like command (for reminders)
added a note, changed code