I want to remove the weird / special characters from the bunch of text files. Here i used the following command to remove the weird characters but it gives me the error.
Command :
1) grep -lri -e ââ¬Å temp.txt | xargs sed -i ' s_ââ¬Å_"_g'
2) grep -lri -e ââ¬Å temp.txt | xargs sed -i ' s/ââ¬Å/"/g'
3) grep -lri -e ââ¬Å temp.txt | xargs perl -piew ' s_ââ¬Å_"_g'
4) grep -lri -e ââ¬Å temp.txt | xargs perl -piew ' s/ââ¬Å/"/g'
Here I want to replace ââ¬Å this character with " quote.
These are the some Weird characters that I want to remove from the text files :
– , — , ; , : , ! , ¡ , ¿ , · , ‚ , ‹ , › , » , @ , / , [ , ]\ , \^ , + , \ , \$ , \s , & , # , % , †, ‡ , ` , ´ , ¯ , ˘ , ¨ , § , ¶ , © , ® , â„ , ° , º , ∂ , ∆ , ∠, ∑ , ± , = , ≠, ¬ , \ , , ~ , ∫ , € , ª , à , â , Ã… , ä , Æ , Ç , è , ë , ï¬ , fl , Æ’ , à , ì , î , ï , ó , ò , ô , ö , õ , ø , Å“ , ß and so on.
Please help me on this & Also suggest the command to remove the bunch of weird characters.