LCOD – 5.2.05 – Removing ^M from WINDOWS text files


You get a file with ^M at the end of every freaking line, and open it up in vi and want to just rip off the last line

This you don’t type ^ you hit CONTROL.

:%s/^V^M//

so you type
:%s/CONTROL-V CONTROL-M//ENTER


ALSO:
You get a file with ^M at the end of every freaking line, and open it up in vi and want to just rip off the last line

This you don’t type ^ you hit CONTROL.

:%s/^V^M//

so you type
:%s/CONTROL-V CONTROL-M//ENTER

No related posts.

Related posts brought to you by Yet Another Related Posts Plugin.

, , , , ,

Easy AdSense by Unreal