![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| In memoriam: Linux evangelist and Linux.com editor Joe Barr | iBot | UNIX and Linux RSS News | 0 | 07-11-2008 12:40 PM |
| PING - Unknown host 127.0.0.1, Unknown host localhost - Solaris 10 | Przemek | SUN Solaris | 4 | 05-25-2008 09:11 PM |
| Leading Editor Contemplates Defection From Microsoft Vista to Linux - SYS-CON Media | iBot | UNIX and Linux RSS News | 0 | 08-18-2007 01:00 PM |
| C++ Editor for Linux MD9.1 | Arendo | High Level Programming | 9 | 12-15-2003 04:57 AM |
| underline character in vi editor | Melissa | UNIX for Dummies Questions & Answers | 2 | 02-05-2002 06:27 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
<92> unknown character when opened with Vi editor in Linux
Hi,
One of our applications has this string : xxx ¿ yyyyy We are on Linux Suse and the character set is en_US.UTF-8. Our requirement is to replace this special character ¿ with a space. When we open the file containing this string using VI editor we see the same character as <92> xxx <92> yyyyy When we try to replace <92> with space using sed command, its not able to recognize this character <92> and so its not able to replace it. Please advice on how to replace this unknown character/code Thanks, |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
Code:
perl -i~ -pe 's/\x92/ /' filename |
|
#3
|
|||
|
|||
|
Thanks Era for the reply. The command did not replace the <92> character. Any reason?
|
|
#4
|
|||
|
|||
|
Hi Era, Sorry the command worked. I was looking in to the Original File instead. Thanks so much.
|
|
#5
|
|||
|
|||
|
Replacing ¿ special character on Linux
We are on Linux Suse. One of our application has this string XXX ¿ YYY in the data file. I think it was entered through some spanish keyboard. But we want to replace this character with a space before we send the file to other applications.
I opened the file using Vi Editor .I thought first of all i need to copy this character and use the command sed 's/¿/ /g' to replace the character with a space. But i couldn't even copy this character. Please advice. Thanks, |
|
#6
|
||||
|
||||
|
you can't copy that character?? then how did you pasted it in forum??
|
|
#7
|
|||
|
|||
|
Hi,
Will suggest you to search well first before putting a question. This is already answered earlier take a look here Changing Special Characters Using Sed Hope this helps you.. |
|||
| Google The UNIX and Linux Forums |