From: <yosuke@ccwf.cc.utexas.edu>
Subject: Re: od for big_endian?
Date: 12 Jun 2001 15:22:35 GMT [thread overview]
Message-ID: <9g5c3r$jaq$1@geraldo.cc.utexas.edu> (raw)
In-Reply-To: 3B260804.93664AD6@smbc-cm.com
Oisin McGuinness <oisin@smbc-cm.com> wrote:
> yosuke@ccwf.cc.utexas.edu wrote:
>>
>>
>> I am wondering if version of od which works with big_endian files? I am
>> thinking of something line
>>
>> od -convert big_endian -I file
>>
>> to show content of the file interpreted as big endian file. I went
>> through DEC's od man page but couldn't find relevant info. did
>> deja/google search without luck...
>>
> What about the conv=swab option of the venerable dd utility?
> Then pipe the results to od or whatever you want.
Oisin,
Thank you for the tip. I never knew about dd's conv= command. I tried
but that didn't fix the problem completely. conv=swab swaps first and
second byte, third and forth byte and so on. What I want to do is swap
first and forth, second and third. So if I had
af46 00c9
I want
c900 46af
as output.
Also, I coudn't figure out how to pipe the dd output. I tried od=\| and
it created a file called '|'.
yosuke
--
yosuke kimura
Center for Energy and Environmental Resources
The Univ. of Texas at Austin, USA
next prev parent reply other threads:[~2001-06-12 15:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-06-11 23:56 od for big_endian? yosuke
2001-06-12 12:16 ` Oisin McGuinness
2001-06-12 15:22 ` yosuke [this message]
2001-06-13 15:55 ` Oisin McGuinness
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox