Path: utzoo!utgpu!utstat!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!bu-cs!bucsb!jbw From: jbw@bucsb.UUCP (jbw) Newsgroups: comp.emacs Subject: Re: script files Summary: inews garbage Message-ID: <2381@bucsb.UUCP> Date: 27 Feb 89 16:42:15 GMT References: <517@cwjcc.CWRU.Edu> Reply-To: jbw@bucsf.bu.edu (Joe Wells) Followup-To: comp.emacs Organization: Boston Univ Comp. Sci. Lines: 20 In article <517@cwjcc.CWRU.Edu> yehuda@victoria.UUCP (Yechiel Yehuda) writes: > After I create a script file of something and send it to be > printed, I first have to go into Emacs and edit all those damn > ^M and ^Ds. It is such a pain. A sysop here wrote a little C > program to clean the files but I still want to see if I can do it in > Emacs. > Is there any way to *quickly* clean a file of control characters > in Emacs? Try this: ESC ESC (load "man") M-x nuke-nroff-bs This usually works for me. (I've also got a short shell script that does this.) -- Joe Wells INTERNET: jbw%bucsf.bu.edu@bu-it.bu.edu IP: [128.197.2.9] UUCP: ...!harvard!bu-cs!bucsf!jbw