Click to See Complete Forum and Search --> : Converting dos/windows text file to linux format?


arnesten
12-20-2000, 05:16 PM
Anyone know of a Linux program that converts from dos/windows text file to linux text file?
If I open a dos/windows text file with vi all its lines ends with ^M.

SubPar
12-20-2000, 05:47 PM
Sure.
http://www.megaloman.com/~hany/software/hd2u/

------------------
Got Konq (http://www.konqueror.org/)?

theoenophile
12-20-2000, 11:34 PM
why not just use the command to change the ^M at the end of each line by doing something like this is in VI command mode like this:

:%s/^M//g

this should substitute nothing for the ^M. Easy to do once you fire up VI instead of having to run a conversion program. Give it a try on a test file.

arnesten
12-21-2000, 06:42 AM
Theoenophile I already tried that, but it didn't work, seems like the ^M is some kind of special character.
However I downloaded the program you suggested, Subpar, and it worked.
Thanks both of you!