dos to unix CR/LF conversion?
Kevin Cozens
kcozens-qazKcTl6WRFWk0Htik3J/w at public.gmane.org
Sat Nov 8 20:10:34 UTC 2003
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.
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
More information about the Legacy
mailing list