Re: Clarification Re: Displaying an arbitrary file in _both_ HEX and ASCII
On Thu, Jan 23, 2020 at 09:42:11PM +0000, Joe wrote:
> I think you'll find that displaying a file as hex and ASCII is pretty
> much of a monopoly of hex editors. I don't know any other kind of
> program that can do it.
Plenty of hex dumpers do it, including "hd", which is installed
by default (it's a symlink to "hexdump").
wooledg:~$ echo "how now brown cow" | hd
00000000 68 6f 77 20 6e 6f 77 20 62 72 6f 77 6e 20 63 6f |how now brown co|
00000010 77 0a |w.|
00000012
Of course, *searching* for a byte sequence in the result would require
piping the output through a pager or an editor of some kind. I'm
sure the OP will act kindly and calmly when someone tells him this,
and won't yell at anyone or accuse us of not reading his demands.
Reply to: