sed 's/^M//g' <badfile >goodfile Replace badfile and goodfile appropriately. Generate the ^M in bash with <cont><v> <cont><m>
HTH, Brandon +--- ---+ | Brandon Mitchell * [EMAIL PROTECTED] * http://bhmit1.home.ml.org/ | | Sometimes you have to release software with bugs. - MS Recruiter | 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, 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 [EMAIL PROTECTED] < /dev/null > >