xfer problems sco-sun

Jean-Pierre A. Radley appl at jpr.com
Thu Apr 1 20:19:31 PST 2004


Bill Vermillion propounded (on Thu, Apr 01, 2004 at 08:18:23PM -0500):
| On Thu, Apr 01, 2004 at 03:35:18PM -0500, Brian K. White thus spoke:
| > Jay R. Ashworth wrote:
| > > On Thu, Apr 01, 2004 at 02:17:07PM -0500, Brian K. White wrote:
| > >> swapcpu? Just sounds like:
| > >> dd conv=swab if=in.txt of=out.txt
| 
| And you said the 'swab' was SCO syntax, but not really.  It's been
| around for years on others.
| 
| > >
| > > *Ghod* no.
| 
| > > You only have to swap the *record headers*, where there is binary
| > > data. Everything else is stored in ASCII; if you swap it, you'll
| > > trash the data.
| 
| > Interesting, annoying too. Oh well, back to the original
| > problem which is that xfer should have worked.
| 
| Just split the each record into two pieces, swap the heard, and add
| the rest.  I did something similar a very long time ago before the
| xfer program existed.  As I recall it's just the first 20 bytes
| that need to be swapped.

Would that it were that simple: it's the twenty byte header at the
beginning *of each record* that needs bytes swapped.

-- 
JP


More information about the Filepro-list mailing list