From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,39fcc1d35fe1da5f X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 2001-06-12 08:25:06 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!howland.erols.net!newsfeed.cs.utexas.edu!geraldo.cc.utexas.edu!not-for-mail From: Newsgroups: comp.sys.dec Subject: Re: od for big_endian? Date: 12 Jun 2001 15:22:35 GMT Organization: The University of Texas at Austin; Austin, Texas Message-ID: <9g5c3r$jaq$1@geraldo.cc.utexas.edu> References: <9g3lqk$qc7$1@geraldo.cc.utexas.edu> <3B260804.93664AD6@smbc-cm.com> NNTP-Posting-Host: piglet.cc.utexas.edu X-Trace: geraldo.cc.utexas.edu 992359355 19802 128.83.42.61 (12 Jun 2001 15:22:35 GMT) X-Complaints-To: abuse@cc.utexas.edu NNTP-Posting-Date: 12 Jun 2001 15:22:35 GMT User-Agent: tin/1.4.5-20010409 ("One More Nightmare") (UNIX) (SunOS/5.6 (sun4d)) Xref: archiver1.google.com comp.sys.dec:4457 Oisin McGuinness 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