[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: copying text files (unix to dos)



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            foka@gpu.srv.ualberta.ca
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
debian-user-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .


Reply to: