Cleansing "\312" from file in emacs -


i'm emacs user, if can accomplish on command line acceptable. i've tried query-replace in emacs, emacs can't seem locate character(s) "\312", i've tried few permutations.

how go cleansing these file? sample data below:

7/30/15 0:15,1781,4,zima blue , other stories ,2006,\312alastair reynolds 7/30/15 0:23,1782,5,zimmerman's algorithm ,2000,\312s. andrew swann 7/30/15 0:27,1783,1,"zimmermann telegram, ",1958,\312barbara w. tuchman 7/30/15 0:47,1784,2,"zinzin road, ",1966,\312fletcher knebel 

those not 4 characters: \312. single character, represented octal digits 312 because emacs not display character otherwise. see emacs manual, node text display.

you can use query-replace replace it. use c-q followed 312 insert in string replace. example:

m-% c-q 312 ret ret ret 

the first ret ends inputting octal digits. second ret accepts string (with single character, \312) replace. third ret accepts empty string replacement.


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -