Pages

Wednesday, August 25, 2010

Hex viewer in console

Hi!

If you want to view the hex content of a file under Mac OS X or Linux system, you can type in a console
hexdump -C file.xml

 It will show the hex content with the corresponding characters like this

00000000  3c 3f 78 6d 6c 20 76 65  72 73 69 6f 6e 3d 22 31  |00000010  2e 30 22 20 65 6e 63 6f  64 69 6e 67 3d 22 55 54  |.0" encoding="UT|

No comments:

Post a Comment