From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,3f66cb31a9300a74 X-Google-Attributes: gidfee84,public From: gallatin@renoir.isds.duke.edu (Andrew Gallatin) Subject: Re: Endian problems... Date: 1995/11/08 Message-ID: <47qk6j$7uj@news.duke.edu>#1/1 X-Deja-AN: 118934314 references: <47me7b$9an@taco.cc.ncsu.edu> organization: Institute of Statistics and Decision Sciences, Duke U. newsgroups: comp.unix.osf.osf1 In article <47me7b$9an@taco.cc.ncsu.edu>, wrote: > >I want to *read* a IEEE floating point file and *write* a dec-native unformatted Can't you just write the file w/the wrong byte ordering & then run the result through 'dd conv=swap' to get a file w/the proper byte ordering? >From the dd(1) man page: ... conv=specification[,specification ...] Specifies one or more of the following conversions: .. swab Swaps every pair of bytes. ... We've done this to convert raw files created on a sparc for use w/our alphas. Drew ############################################################################## # Andrew Gallatin, Computer Project Manager # # Institute of Statistics and Decision Sciences # # Box 90251, Duke University, Durham, NC 27708-0251 # ##############################################################################