[plug] Looking for LIST

Andrew Francis locust at iinet.net.au
Mon Apr 1 18:06:47 WST 2002


On Mon, 1 Apr 2002 navarre at plug.linux.org.au wrote:
> it to give me a line like:
>
> 0000 30 31 32 33 34 35 36 37 38 39 41 42 43 44 45 46 012345678ABCDEF
>
> The best I have got is a hex display without the ascii but it was all
> byte reversed so I could not use it to debug an output file.

Try the "hexdump" utility, which I believe comes with gdb, the GNU
Debugger. Note the "-C".

$ echo "hello world, how are you?" | hexdump -C
00000000  68 65 6c 6c 6f 20 77 6f  72 6c 64 2c 20 68 6f 77  |hello world, how|
00000010  20 61 72 65 20 79 6f 75  3f 0a                    | are you?.|
0000001a

HTH

-- 
Andrew Francis
locust at iinet.net.au




More information about the plug mailing list