The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Operating Systems > Linux > SuSE
.
google unix.com



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

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-02-2008
LinuxTest LinuxTest is offline
Registered User
  
 

Join Date: Oct 2008
Posts: 6
<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,


  #2 (permalink)  
Old 10-02-2008
era era is offline Forum Advisor  
Herder of Useless Cats (On Sabbatical)
  
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,652

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~
  #3 (permalink)  
Old 10-02-2008
LinuxTest LinuxTest is offline
Registered User
  
 

Join Date: Oct 2008
Posts: 6
Thanks Era for the reply. The command did not replace the <92> character. Any reason?
  #4 (permalink)  
Old 10-02-2008
LinuxTest LinuxTest is offline
Registered User
  
 

Join Date: Oct 2008
Posts: 6
Hi Era, Sorry the command worked. I was looking in to the Original File instead. Thanks so much.
  #5 (permalink)  
Old 10-06-2008
LinuxTest LinuxTest is offline
Registered User
  
 

Join Date: Oct 2008
Posts: 6
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 (permalink)  
Old 10-06-2008
vidyadhar85's Avatar
vidyadhar85 vidyadhar85 is offline Forum Staff  
Moderator(The Tutor)
  
 

Join Date: Jun 2008
Location: INDIA
Posts: 1,418
you can't copy that character?? then how did you pasted it in forum??
  #7 (permalink)  
Old 10-06-2008
parmar.kunal parmar.kunal is offline
Registered User
  
 

Join Date: Oct 2008
Posts: 19
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..
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 11:41 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0