grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New command dump


From: Bean
Subject: Re: New command dump
Date: Sat, 4 Aug 2007 23:21:24 +0800

On 8/4/07, Robert Millan <address@hidden> wrote:
> On Fri, Aug 03, 2007 at 11:33:38PM +0800, Bean wrote:
> > Hi,
> >
> > I have written a new command dump, it can hex dump content of file or 
> > memory.
> >
> > usage:
> >
> > dump [-s skip] [-n length] { FILE | (mem) }
> >
> > The output look just like command hexdump.
>
> I see that the output of hexdump is the same as "od -x".  However, I find
> "od -tx1" more useful.  Maybe it would be better to do that instead?

In my system, hexdump output look like this:

00000000  eb 5e 80 05 20 39 ff ff  00 00 00 00 02 02 40 00  |.^.. 
address@hidden|
00000010  02 00 02 43 7d f8 3f 00  3f 00 ff 00 00 00 00 00  |...C}.?.?.......|
00000020  00 00 00 00 80 00 29 00  00 00 00 20 20 20 20 20  |......)....     |
00000030  20 20 20 20 20 20 46 41  54 31 36 20 20 20 00 00  |      FAT16   ..|

od -tx1:

0000000 eb 5e 80 05 20 39 ff ff 00 00 00 00 02 02 40 00
0000020 02 00 02 43 7d f8 3f 00 3f 00 ff 00 00 00 00 00
0000040 00 00 00 00 80 00 29 00 00 00 00 20 20 20 20 20
0000060 20 20 20 20 20 20 46 41 54 31 36 20 20 20 00 00

I think the previous one looks better, because it has text char as
well as hex value.

-- 
Bean




reply via email to

[Prev in Thread] Current Thread [Next in Thread]