On Tue, 5 Aug 1997, Martin Schulze wrote: > Paul Miller writes: > > > UN*X doesn't use the ^M character at the end of each line. How can I > > convert between formats? And is there a way to do it automatically when > > a file is copied to/from a dos filesystem? > > cat unixfile |recode latin1:ibmpc > dosfile > cat dosfile |recode ibmpc:latin1 > unixfile
Or, if your document doesn't contain high-bit characters, you may simply use fromdos/todos (or dos2unix/unix2dos). Read their manpages. :) Anthony -- Anthony Fok Tung-Ling [EMAIL PROTECTED] Civil Engineering http://www.ualberta.ca/~foka/ University of Alberta, Canada Keep smiling! *^_^* -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .