Edit file on Windows, shows ^M on each line on Linux

Daniel C. dcrookston at gmail.com
Fri Apr 13 10:09:24 MDT 2007


On 4/13/07, Chris Carey <chris.carey at gmail.com> wrote:
> After creating a file on Windows, when I open that file on Linux, I
> see ^M at the end of each line in vi.

:%s/(ctrl)M//g

That'll fix it.



More information about the PLUG mailing list