🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.help
Article #189097

Re: Removal of non-printable characters

#189097
From: Pete Halverson
Date: Wed, 01 May 1991 19:42
20 lines
1511 bytes
In article <1991May1.154743.25413@math.ufl.edu> wang@math.ufl.edu writes:
>I have got a question for you emacs experts: I have some files which
>contain bunch of non-printable characters, such as Control-L (served
>as page breaker), Control-M (line breaker). How do I remove all of
>them from the current buffer if I edit such a file in Emacs? 

Try

  "M-x replace-regexp RET [\000-\010\012-\037\177-\377] RET RET"

where each "\xxx" is a *single* *character* entered by typing "C-q x x x".
Note that this character may actually be displayed as some random control
character in the minibuffer.


--
===============================================================================
Pete Halverson                        		    INET: halverson@crd.ge.com 
GE Corporate R&D Center	                      UUCP: uunet!crd.ge.com!halverson
Schenectady, NY
Technical Details
Message-ID: <19148@crdgw1.crd.ge.com>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!zaphod.mps.ohio-state.edu!rpi!crdgw1!altair!halvers
References: <1991May1.154743.25413@math.ufl.edu>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 103b8b,b4ba32a2a7cb275e
X-Google-Attributes: gid103b8b,public
X-Google-ArrivalTime: 1991-05-02 05:05:31 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!zaphod.mps.ohio-state.edu!rpi!crdgw1!altair!halvers
From: halvers@altair.crd.ge.com (Pete Halverson)
Newsgroups: gnu.emacs.help
Subject: Re: Removal of non-printable characters
Message-ID: <19148@crdgw1.crd.ge.com>
Date: 1 May 91 19:42:17 GMT
References: <1991May1.154743.25413@math.ufl.edu>
Sender: news@crdgw1.crd.ge.com
Reply-To: halverson@crd.ge.com (Pete Halverson)
Organization: General Electric Corporate R&D Center
Lines: 20