Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!indri!nic.MR.NET!shamash!com50!mscunx!hawkmoon!det From: det@hawkmoon.MN.ORG (Derek E. Terveer) Newsgroups: comp.unix.xenix Subject: Re: NEED HELP: fread, fwrite, fseek, ftell Summary: try dd conv=swab Keywords: AAAAAAAAARRRRRGGGHHH Message-ID: <929@hawkmoon.MN.ORG> Date: 12 May 89 13:13:43 GMT References: <7327@mrspoc.UUCP> Organization: One of the Eternal Champions - Richfield, MN, 554232523, USA Lines: 17 In article <7327@mrspoc.UUCP>, itkin@mrspoc.UUCP (Steven M. List) writes: > I am trying to write a simple little program to swap bytes and/or words > in a file. I'm not sure if this will do what you want, but you might want to check out the command: dd if=file_name conv=swab which swaps every pair of bytes in the input stream. dd(1m) derek -- Derek Terveer det@hawkmoon.MN.ORG || ..!uunet!rosevax!elric!hawkmoon!det w(612)681-6986 h(612)688-0667 "A proper king is crowned" -- Thomas B. Costain