Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'A simple bash shell hex converter' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A simple bash shell hex converter
Authored by: opeer on Mar 04, '03 07:33:46PM

Well, being from a linux environment, two possibly easier methods come to mind:

1) Use the command 'man ascii' shows a complete ascii table w/ conversion
from ASCII to Octal, Hex, and Integer.

2) A utility built-in to OS X is 'hexdump'. Type this at any terminal, then insert your character. Then type '^D' aka cntrl-D twice. Result shows a fake memory address and then the hex value(the first two are the ascii representation of the hex. Also for more options use 'man hexdump'



[ Reply to This | # ]