On Fri, Jul 06, 2001 at 11:00:12PM +0200, Arjen van Drie wrote:
[snip]
> >You will see this if you use `cat -ve' on the file.
>
> Thanks all. It works now. How does one read hexdumps? Is there
> a howto or a table somewhere?
On FreeBSD I like hexdump -C a lot, which gives output like:
bash$ hexdump -C /var/service/qmail-send/run
00000000 23 21 2f 62 69 6e 2f 73 68 0a 65 78 65 63 20 65 |#!/bin/sh.exec e|
00000010 6e 76 20 2d 20 50 41 54 48 3d 22 2f 76 61 72 2f |nv - PATH="/var/|
00000020 71 6d 61 69 6c 2f 62 69 6e 3a 24 50 41 54 48 22 |qmail/bin:$PATH"|
00000030 20 71 6d 61 69 6c 2d 73 74 61 72 74 20 2e 2f 4d | qmail-start ./M|
00000040 61 69 6c 64 69 72 2f 0a |aildir/.|
00000048
Which immediately shows where exactly the spaces are and everything.
For reading hexdumps without ascii side-output, you need to convert
the hex codes to ascii. Google can teach you a lot about that, I don't
have anything handy right now (and too much blood in my alcohol).
Greetz, Peter
--
Against Free Sex! http://www.dataloss.nl/Megahard_en.html