Path: utzoo!news-server.csri.toronto.edu!bonnie.concordia.ca!ccu.umanitoba.ca!herald.usask.ca!alberta!aunro!aupair.cs.athabascau.ca!atha!decwrl!elroy.jpl.nasa.gov!freedom!xanth!tennant From: tennant@xanth.msfc.nasa.gov (Allyn F. Tennant - ES65) Newsgroups: comp.sys.next Subject: Convert DOS format files to UNIX Summary: Shell script to convert DOS files to UNIX Keywords: DOS Message-ID: Date: 13 Mar 91 23:24:12 GMT Sender: root@freedom.msfc.nasa.gov (Super-User) Organization: NASA/MSFC Lines: 9 I got this off the comp.sys.aix newsgroup last week. To strip all extra control-M's and the final control-Z from a DOS file, use the following script: tr -d '\015\032' outfile (Sorry I don't know the trick for putting the characters back, i.e., to go the other way. Allyn