From: Grant Edwards on
On 2010-07-20, Peter Hanke <peter_ha(a)andres.net> wrote:
> Assume I have a (text) file.
> How can I print out this files content from cmdline/terminal as/with hex values?
>
> Again: No GUI based hex editor should be used.
>
> The output should (if possible) show the real (huma readable) content in a second
> olumn and be something similar to (only one line sample):
>
> 61 6C 69 61 73 20 2E 2E 3D 27 63 64 20 2E 2E 27 alias ..='cd ..'

hexdump -C filename

--
Grant Edwards grant.b.edwards Yow! ONE LIFE TO LIVE for
at ALL MY CHILDREN in ANOTHER
gmail.com WORLD all THE DAYS OF
OUR LIVES.