From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Message-id: <4135CF77-13EF-4D0F-A546-BD004AFCD022@mac.com> From: Pietro Gagliardi To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> In-reply-to: <712ce05eb740e24030d816ec65f3fa45@quanstro.net> Date: Mon, 14 Jul 2008 17:10:33 -0400 References: <712ce05eb740e24030d816ec65f3fa45@quanstro.net> Subject: Re: [9fans] xd bug Topicbox-Message-UUID: e6d491cc-ead3-11e9-9d60-3106f5b1d025 On Jul 14, 2008, at 1:13 PM, erik quanstrom wrote: > -x by itself doesn't output the hex codes > for bytes, it outputs the hex codes for 4 byte > integers. i think you're thinking of this command > line instead > > ; xd -c -1x bad > 0000000 e0 Q R S \n > 0 e0 51 52 53 0a On Jul 14, 2008, at 1:22 PM, Russ Cox wrote: > The -c and -x formats are not intended to align. > If you want hex codes aligned with characters, use -b. Thanks for the clarifications. -b == -1x, so both solve this misunderstanding.