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

Re: copying text files (unix to dos)



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
> 

Also you can try the easier from-todos commands:

fromdos file
todos file

They remove/add ^M in file.

Regards
-- 
-------------------------------------------------------------
 Antonio Muñoz Roldán                mailto:roldan@ciemat.es
 Unidad de Informatica               http://apcien.ciemat.es
 CIEMAT, Av. Complutense 22          tlfn: 91 346 6365
 28040 Madrid                        fax:  91 346 6005
-------------------------------------------------------------


--
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: