dos to unix CR/LF conversion?

Marc Lijour (Professeur d'Informatique) marc-bbkyySd1vPWsTnJN9+BGXg at public.gmane.org
Sat Nov 8 20:25:28 UTC 2003


Le 8 Novembre 2003 15:10, Kevin Cozens a écrit :
> At 02:55 PM 11/08/2003 -0500, max wrote:
> >Unfortunately, at first glance, it seems to delete ^m but doesn't seem to
> >insert ^r?  That's what happened to my text file.  That's just a minor
> >tweak to the source code, though.
>
> Conversion of a text file from DOS to *nix is just a matter of deleting ^m.
> If your text file has lines that end in ^m only then it is not a DOS text
> file but possibly one from a Mac or other OS. This is where the 'tr'
> command can be useful. It would allow you to change all ^m to ^r.
>


2 utilities that are handy:
dos2unix
unix2dos

> Cheers!
>
> Kevin.  (http://www.interlog.com/~kcozens/)
>
> Owner of Elecraft K2 #2172        |"What are we going to do today, Borg?"
> E-mail:kcozens at interlog dot com|"Same thing we always do, Pinkutus:
> Packet:ve3syb at ve3yra.#con.on.ca.na|  Try to assimilate the world!"
> #include <disclaimer/favourite>   |              -Pinkutus & the Borg
>
> --
> The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
> TLUG requests: Linux topics, No HTML, wrap text below 80 columns
> How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml

--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list