![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| SuSE SUSE Linux is a major operating system. The developer rights are owned by Novell, Inc. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| 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 04:40 PM |
| PING - Unknown host 127.0.0.1, Unknown host localhost - Solaris 10 | Przemek | SUN Solaris | 4 | 05-26-2008 01:11 AM |
| Leading Editor Contemplates Defection From Microsoft Vista to Linux - SYS-CON Media | iBot | UNIX and Linux RSS News | 0 | 08-18-2007 05:00 PM |
| C++ Editor for Linux MD9.1 | Arendo | High Level Programming | 9 | 12-15-2003 07:57 AM |
| underline character in vi editor | Melissa | UNIX for Dummies Questions & Answers | 2 | 02-05-2002 09:27 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
<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, |
|
||||
|
Code:
perl -i~ -pe 's/\x92/ /' filename There are many other ways but many of them are not entirely portable. If you have Perl, this should work without modification. The original file will be saved as filename~ |
|
||||
|
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, |
|
||||
|
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.. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|