Re: removing ^M from a text file
I use the following under vi or vim or elvis:
:1,$s/^M//g
The ^M is type as Ctrl-V Ctrl M.
It works like a charm.
Sebastian.
Sebastian Canagaratna,
Department of Chemistry
Ohio Northern University
Ada, OH 45810.
> Dear all,
>
> I had the misfortune to be stuck with MSWrite over the vac, and
> although I told it to save as plain text, it didn't. I can delete most of
> the cruft, but there is ^M at the end of each and every line. I've tried
> catdoc, word2x, and sed, but none of them will remove them. Can you
> suggest anything, please?
>
> please cc me as I'm not on this list ATM.
>
> Thanks,
>
> Matthew
>
> --
> Elen sila lumenn' omentielvo
>
> Steward of the Cambridge Tolkien Society
> Selwyn College Computer Support
> http://www.geocities.com/Area51/Chamber/8841/
> http://www.cam.ac.uk/CambUniv/Societies/tolkien/
> http://pick.sel.cam.ac.uk/
>
>
> --
> Unsubscribe? mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null
>
>
Reply to: