Re: removing ^M from a text file

1999-01-13 Thread Hamish Moffatt
On Tue, Jan 12, 1999 at 03:48:31PM +, M.C. Vernon wrote: > On Tue, 12 Jan 1999, Brandon Mitchell wrote: > > > sed 's/^M//g' goodfile > > > > Replace badfile and goodfile appropriately. > > Generate the ^M in bash with > > Thanks - that's what I couldn't figure out. It's nice to know I was

Re: removing ^M from a text file

1999-01-12 Thread Ramesh Natarajan
Hi, Try $cat file | col -b > file.plain.txt This is also great way to transform man output to plain text. $ man date | col -b > man.date.txt Hope this helps, Bye, nram [EMAIL PROTECTED] +-+ |Linux Now |

Re: removing ^M from a text file

1999-01-12 Thread Johann Spies
On Tue, 12 Jan 1999, M.C. Vernon wrote: > 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, an

Re: removing ^M from a text file

1999-01-12 Thread Steve Lamb
-BEGIN PGP SIGNED MESSAGE- On Tue, 12 Jan 1999 15:13:41 + (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 eve

Re: removing ^M from a text file

1999-01-12 Thread Bob Nielsen
Pico will strip the ^M but still leaves the ^Z which (sometimes) is at the end of a MSDOS text file (at least there is only one think to delete). Bob On Tue, 12 Jan 1999, John Stevenson wrote: > I found a useful way of converting a file, simply load it into > Netscape browser and it will not dis

Re: removing ^M from a text file

1999-01-12 Thread John Stevenson
I found a useful way of converting a file, simply load it into Netscape browser and it will not display the ^M characters. Then you can print it off or copy (alt-c) and paste the text into an editor, or put it into netscape composer. John. "M.C. Vernon" wrote: > > Dear all, > > I had

Re: removing ^M from a text file

1999-01-12 Thread Peter Berlau
On Tue, Jan 12, 1999 at 03:13:41PM +, M.C. Vernon wrote: > Dear all, [..] dos2unix text.txt "removes" the ^M -- Peter

Re: removing ^M from a text file

1999-01-12 Thread David B. Teague
On Tue, 12 Jan 1999, M.C. Vernon wrote: > 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, an

Re: removing ^M from a text file

1999-01-12 Thread M.C. Vernon
On Tue, 12 Jan 1999, Brandon Mitchell wrote: > sed 's/^M//g' goodfile > > Replace badfile and goodfile appropriately. > Generate the ^M in bash with Thanks - that's what I couldn't figure out. It's nice to know I was trying to use sed the right way :) Matthew -- Elen sila lumenn' omentielvo

Re: removing ^M from a text file

1999-01-12 Thread Brandon Mitchell
sed 's/^M//g' goodfile Replace badfile and goodfile appropriately. Generate the ^M in bash with HTH, Brandon +--- ---+ | Brandon Mitchell * [EMAIL PROTECTED] * http://bhmit1.home.ml.org/ | | Sometimes you have to release software wi

Re: removing ^M from a text file

1999-01-12 Thread Didier Verna
Noah L Meyerhans writes: Noah> On Tue, 12 Jan 1999, M.C. Vernon wrote: >> 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.

Re: removing ^M from a text file

1999-01-12 Thread Sebastian Canagaratna
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

Re: removing ^M from a text file

1999-01-12 Thread Noah L. Meyerhans
-BEGIN PGP SIGNED MESSAGE- dos2unix, in the sysutils package. noah On Tue, 12 Jan 1999, M.C. Vernon wrote: > 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

Re: removing ^M from a text file

1999-01-12 Thread Patrick Colbeck
I seem to remember that crypt++ with emacs/xemacs was supposed to do this but I just tried it and it didn't. I may be doing it wrong though, does anyone have any comments ? Pat On Tue Jan 12, 1999 at 03:13:41PM +, M.C. Vernon wrote: > Dear all, > > I had the misfortune to be stuck with MSW