Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question
    
Probably hexdump or printf. –  Bob Jun 23 '13 at 9:32

1 Answer 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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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