[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: removing ^M from a text file



-----BEGIN PGP SIGNED MESSAGE-----

On Tue, 12 Jan 1999 15:13:41 +0000 (BST), M.C. Vernon wrote:

>	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? 

    Well, since everyone piped up with an answer for their favorite editor,
here's the answer for mine.  In joe it is ^KR, `m, r, <CR>.  That' will do a
search and replace, look for all ^M, replace with nothing.

- -- 
         Steve C. Lamb         | I'm your priest, I'm your shrink, I'm your
         ICQ: 5107343          | main connection to the switchboard of souls.
- -------------------------------+---------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: PGPsdk version 1.0 (C) 1997 Pretty Good Privacy, Inc

iQCVAwUBNpuda6C6xbtZwvdnAQG7JQP8D8xYLpDo19AQzvHw+cgUxSVewLyBoCws
41w/wLun+McxHochypGEvQbsmP4P/LFe3C6dKlNXLOx8/3nCpJIxGNSxXzsDHqTG
psemab3pOhL49nPWQQnwydJHjzLl9JoHsfCuyU5/9RoGKzYkW6QsZhinOh2FZuZX
XgEuP5Rpi2c=
=NsB6
-----END PGP SIGNATURE-----



Reply to: