From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 13746 invoked from network); 15 Jun 1998 21:37:25 -0000 Received: from smtp.paralleldata.com (HELO paralleldata.com) (38.153.145.2) by mail2.redhat.com with SMTP; 15 Jun 1998 21:37:25 -0000 Received: by paralleldata.com from localhost (router,SLMail V2.5); Mon, 15 Jun 1998 16:37:35 -0500 Received: by paralleldata.com from paralleldata.com (208.252.48.211::mail daemon; unverified,SLMail V2.5); Mon, 15 Jun 1998 16:37:33 -0500 Sender: "Wsb" Message-ID: <358593ED.42101120@paralleldata.com> Date: Mon, 15 Jun 1998 21:36:45 +0000 From: "Wes Bauske" Organization: Parallel Data Systems X-Mailer: Mozilla 4.04 [en] (X11; U; Linux 2.0.33 i686) MIME-Version: 1.0 To: "axp-list@redhat.com" Subject: Re: Byte orders References: <199806152030.QAA04912@horizon.ess.sunysb.edu> <35858C70.8B62CE30@innova.net> <3585937C.5BDEE81C@paralleldata.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Wes Bauske wrote: > > Bill wrote: > > > > I think "dd" has an option that swaps bytes. > > > > Aakin N. Patel wrote: > > > > > > I've managed to aquire a few binary data sets I need to work with, which > > > are in big-endian format. Does anyone know of a quick simple byte-swapping > > > utility that I can use to change the bytes around so that I can read the > > > data on my alphas? > > > > > > - Aakin > > > > It does but it doesn't swap big endian to little endian. > > All you need is a small program that does this: > > Big endian -> 1234 > Little endian -> 4321 > > I've done this only with 32 bit things, like int/float. > Never looked at what happens to a double. Also, character > strings are NOT byte swapped from what I've seen. That > confused me no end when looking at files with mixed binary > and character data. > > 'od' is useful in examining what is happening. > Sent to wrong id, sorry... Wes