1

Is there a command that would let me see ASCII values of characters outputted from a program?

Say I pipe in a NUL character and a p, could I get a 0 and a 112 out?

| |
  • Probably hexdump or printf. – Bob Jun 23 '13 at 9:32
1

You can use od -t d1 to output the ascii values of a file. When using this, he starts the first column with the offset within the stream (the adress), when you dont need it, you can pipe it into cut -d \ -f 2- or similar.

| |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.