How to input non-printing characters in mlterm

How to input non-printing characters in mlterm

Shlomi Fish shlomif at iglu.org.il
Tue Jun 29 18:03:20 IDT 2010


On Tuesday 29 Jun 2010 17:22:02 Avraham Rosenberg wrote:
> Hi,
> I need to get rid of a non-printing character in a Hebrew text originating
> from a doc file converted with catdoc.
> Receiving the output in vi, I can see that the offending character is xa0,
> and I can delete it with :g/Ctrl-Vxa0/s///g, but, unlike in the C locale,
> in the LANG=he_IL.UTF-8 locale, the same substitution does not work
> outside vim (with sed, for example).
> How is it possible to do it?
> 
> avraham12a_s32:~$ uname -a
> Linux debian 2.6.26-2-686 #1 SMP Tue Mar 9 17:35:51 UTC 2010 i686 GNU/Linux
> 

You can try using perl (untested):

$ perl -lap -i.bak -e 's/\x{A0}//g' [files]

Regards,

	Shlomi Fish

> Thanks, Avraham

-- 
-----------------------------------------------------------------
Shlomi Fish       http://www.shlomifish.org/
Original Riddles - http://www.shlomifish.org/puzzles/

God considered inflicting XSLT as the tenth plague of Egypt, but then
decided against it because he thought it would be too evil.

Please reply to list if it's a mailing list post - http://shlom.in/reply .



More information about the Linux-il mailing list