10-06-2008
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,
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I want to print a man page for a command in unix, this is what I did
man command > command.txt
but when I view the output file command.txt I found there are lot of _^H characters that in the man page are actually underline character, how can I replace this _^H with underline character?
... (2 Replies)
Discussion started by: Melissa
2 Replies
2. Programming
What is the best C++ editor that works under MD9.1?
I know the question is more of a personal opinion, but it's more meant for me to see what program would be best to install.
Also, does C++ under a unix-based OS work differently then under windows? Because I've learned C++ for windows and want... (9 Replies)
Discussion started by: Arendo
9 Replies
3. Shell Programming and Scripting
Can someone help me to write a script / command to read in a file, character by character, replace any unknown ASCII characters with space. then write out the file to a new filename/
Thanks! (1 Reply)
Discussion started by: raghav525
1 Replies
4. UNIX for Advanced & Expert Users
Hello, How do i check number of files currently opening in the linux server? Your help is highly appreciated. Thank you
---------- Post updated at 02:43 PM ---------- Previous update was at 02:19 PM ----------
never mind!! I got it.
---------- Post updated at 02:44 PM ---------- Previous... (3 Replies)
Discussion started by: govindts
3 Replies
5. Shell Programming and Scripting
Hi,
I have received a file from in ASCII format. When I am viewing in the vi editor I could see the content like below
000700006098204 983004100 09910LATINA 09920LT 09930380
@ ... (4 Replies)
Discussion started by: Satyak
4 Replies
6. UNIX for Advanced & Expert Users
I want to buy an ereader described known among others as MDB-106 described here: ambiancetechnology . com . Because I promissed myself never to buy anything (again) that is closed I am trying to see how open it is.
It states there there is Linux 2.6 inside. Also some software updates can be... (8 Replies)
Discussion started by: rocus
8 Replies
7. Shell Programming and Scripting
Hi
#Testing for file existence
if ; then
echo 'SCHOOL data is available for processing'
else
echo 'SCHOOL DATA IS NOT AVAILABLE FOR PROCESSING'
:
i wrote a script, where it begins by checking if file exists or not.
If it exists, it truncates the database... (2 Replies)
Discussion started by: rxg
2 Replies
8. UNIX for Dummies Questions & Answers
Hi friends,
I am trying to add a newline char ('\n') between the query and the commit statement in the following shell script.
#! /bin/sh
echo "select * from tab; commit;" > data.sql
I have tried typing in "Ctrl-V + Ctrl-J" combination which has inserted ^@ (NUL) character but the commit... (1 Reply)
Discussion started by: royalibrahim
1 Replies
9. Homework & Coursework Questions
Creating a large number of rules such as 100000, iptables will produce errors after 42000 rules "iptables: Unknown error 18446744073709551615".
But another machine where i have debian virtual machine I can easily run the sciprt of 100000 of rules
I am waiting for your reply
4.... (1 Reply)
Discussion started by: tahirfattani
1 Replies
LEARN ABOUT DEBIAN
iswspace
ISWSPACE(3) Linux Programmer's Manual ISWSPACE(3)
NAME
iswspace - test for whitespace wide character
SYNOPSIS
#include <wctype.h>
int iswspace(wint_t wc);
DESCRIPTION
The iswspace() function is the wide-character equivalent of the isspace(3) function. It tests whether wc is a wide character belonging to
the wide-character class "space".
The wide-character class "space" is disjoint from the wide-character class "graph" and therefore also disjoint from its subclasses "alnum",
"alpha", "upper", "lower", "digit", "xdigit", "punct".
The wide-character class "space" contains the wide-character class "blank".
The wide-character class "space" always contains at least the space character and the control characters 'f', '
', '
', ' ', 'v'.
RETURN VALUE
The iswspace() function returns nonzero if wc is a wide character belonging to the wide-character class "space". Otherwise it returns
zero.
CONFORMING TO
C99.
NOTES
The behavior of iswspace() depends on the LC_CTYPE category of the current locale.
SEE ALSO
isspace(3), iswctype(3)
COLOPHON
This page is part of release 3.44 of the Linux man-pages project. A description of the project, and information about reporting bugs, can
be found at http://www.kernel.org/doc/man-pages/.
GNU
1999-07-25 ISWSPACE(3)