- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: using sed on special char; like "á"
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2007 08:46 AM
07-09-2007 08:46 AM
using sed on special char; like "á"
9000/800/rp4440
HP-UX HOSTNAME B.11.11 U 9000/800 529435876 unlimited-user license
any suggetion how this type of sed replacent can be done?
What we are trying to achive is replace English char with equivalent Russian descreption. If there is a special char, then no changes are happening.
#locale -a|grep -i ru
ru_RU.iso88595
ru_RU.utf8
below is the variable set
LANG=ru_RU.utf8; export LANG
LC_ALL=ru_RU.utf8; export LC_ALL
LC_COLLATE=ru_RU.utf8; export LC_COLLATE
# grep -i russ swlist.fileset.07092007
International.RUSSIAN B.11.11 RUSSIAN
PHCO_30241.RUSSIAN 1.0 International.RUSSIAN
what is special on this char so that it wont support sed? Any one has any suggetion on how we can accomplish this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2007 09:01 AM
07-09-2007 09:01 AM
Re: using sed on special char; like "á"
Have you tried using an escape (\) character before the special char in the sed sub?
Jov
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2007 11:37 PM
07-09-2007 11:37 PM
Re: using sed on special char; like "á"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2007 04:23 AM
07-10-2007 04:23 AM
Re: using sed on special char; like "á"
to exclude input character woes, I suggest to put the sed commands into a file, like
cat sed.cmd
s/Ae/Ã /g
and call
sed -f sed.cmd
mfG Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2007 06:17 AM
07-10-2007 06:17 AM
Re: using sed on special char; like "á"
BTW how did u type that special char?I am not running the sed comand directly and not sure how did the special chars are genearted.
- Tags:
- missing attachment
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2007 06:23 AM
07-10-2007 06:23 AM
Re: using sed on special char; like "á"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2007 08:02 PM
07-10-2007 08:02 PM
Re: using sed on special char; like "á"
what is the result of the sed command?
Is there any error message?
mfG Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2007 06:09 AM
07-11-2007 06:09 AM
Re: using sed on special char; like "á"
If cut&paste loses the special char from your history, you can use history -40 > file to save it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2007 03:06 PM
07-11-2007 03:06 PM
Re: using sed on special char; like "á"
(Hmm, it looked like "u" with a circumflex and an "A" with a grave accent. Where the subject above looks like an "a" with an accent.)
This had the hex pattern of 0xc3 0xa1. I had no problems using sed with those two chars.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2007 02:02 AM
07-20-2007 02:02 AM
Re: using sed on special char; like "á"
"Looks like getting all the character sets on the same page corrected the sed issue, as far as the Russian characters causing it to fail".
The investigation is still going on..