Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1IHLRx-0008VZ-Jr for mharc-grub-devel@gnu.org; Sat, 04 Aug 2007 11:21:53 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IHLRv-0008UV-Nn for grub-devel@gnu.org; Sat, 04 Aug 2007 11:21:51 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IHLRq-0008Ol-TP for grub-devel@gnu.org; Sat, 04 Aug 2007 11:21:51 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IHLRq-0008Oc-P8 for grub-devel@gnu.org; Sat, 04 Aug 2007 11:21:46 -0400 Received: from py-out-1112.google.com ([64.233.166.177]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IHLRp-0006ol-5j for grub-devel@gnu.org; Sat, 04 Aug 2007 11:21:45 -0400 Received: by py-out-1112.google.com with SMTP id f31so2058198pyh for ; Sat, 04 Aug 2007 08:21:25 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=oxQl94t40m1gVNQYXimvxH6SH5afZFW8G7GDGumhJ6bvW7FZXVnnYkaFAxXy2RTu5KZ0ITcQ+q7qFXnvIseN10F5P7K/TJ+kmGo1dOnBaUHBeBEbgjCKeRgb2LuS5YwdQB2cax2qmSb5EoRblQNihoEq9GDFNEANLxS5sA66Pok= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=dJMplnNB2JCmRBb3w0/eM63CS9yLKcfHOGj02wfTQK4rbxTDQHg0ldVM3SfOMox2o2MIDLZL3tnZyzUzGtXMv7zlmicTSDzUFEiS9Vhy88U7lasdbuC2Sj/Ek4LmI/d6O7FM155glmdrFzwSyGXiVfJbsEO8CZMILEWFj2yV4aU= Received: by 10.64.201.7 with SMTP id y7mr6595279qbf.1186240884605; Sat, 04 Aug 2007 08:21:24 -0700 (PDT) Received: by 10.64.48.11 with HTTP; Sat, 4 Aug 2007 08:21:24 -0700 (PDT) Message-ID: Date: Sat, 4 Aug 2007 23:21:24 +0800 From: Bean To: "The development of GRUB 2" In-Reply-To: <20070804094936.GA8207@aragorn> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20070804094936.GA8207@aragorn> X-Detected-Kernel: Linux 2.6 (newer, 2) Subject: Re: New command dump X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Aug 2007 15:21:52 -0000 On 8/4/07, Robert Millan 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 |.^.. 9........@.| 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