04-16-2008
No.
I will tell you clearly.
i want to delete a invalid character(which i told you as example '2'.)
The query should check for characters which is not present in the following
A to Z,
a to z ,
0 to 9
and all the symbols present in the keyboard.
If you have any doubts reply me.
Last edited by rollthecoin; 04-16-2008 at 06:34 AM..
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi ,
How to replace all entries of comma in text file by space or other character.
cat temp.txt
A,B,C,D
I want this file to be like
A B C D
Please help!!! (4 Replies)
Discussion started by: prashant43
4 Replies
2. Shell Programming and Scripting
Hi,
I have a requirement to replace a every blank space with char "\\ ".
Like string "God Love" to "God\\ Love"
and "God Love" as "God\\ \\ Love".
and only in the sed.
We have already a script but it is replaceing all continuous blank space with one "\\ ". which is as
DIR=`sudo echo... (7 Replies)
Discussion started by: Akshay4u
7 Replies
3. Shell Programming and Scripting
hi,
I have a doubt in replacing characters with blank.
My requirement is that, i have one file and looks like below
4:ALTER SYSTEM DISCONNECT SESSION '193,191' IMMEDIATE;
6:ALTER SYSTEM DISCONNECT SESSION '205,7274' IMMEDIATE;
5:ALTER SYSTEM DISCONNECT SESSION '206,34158' IMMEDIATE;... (4 Replies)
Discussion started by: sridhusha
4 Replies
4. Shell Programming and Scripting
Hello everyone,
I want to replace all "," (commas) with a blank space
My command thus far is:
cat test.text | sed -e s/\`//g | awk '{print$1" "$2" "$3}'
I'm sure you guys know this, but the SED command that I am using is to get rid of the "`" (tics).
which gives me:
name ... (5 Replies)
Discussion started by: jayT
5 Replies
5. UNIX for Dummies Questions & Answers
Dear Gurus,
I have a unix file with multiple colons on each row, and I would like to replace each colon with a blank space using the awk command.
For example, I have the following data:
Data:
---------
A~000000000000518000~SLP:~99991231~20090701~00102.00~USD:~CS:~... (2 Replies)
Discussion started by: chumsky
2 Replies
6. Shell Programming and Scripting
Hi Guys,
I have a file with content as below
aj.txt
"Iam
allfine" abcdef
abcd "all is
not well"
What I'm trying to say is my data has some new line characters in between quoted text. I must get ride of the newline character that comes in between the quoted text.
output must be:... (8 Replies)
Discussion started by: ajahuja
8 Replies
7. Shell Programming and Scripting
Hi, I have a file containing this:
testvol1 unix enabled
testvol2 unix enabled
testvol3 unix enabled
testvol3 qtree1 unix enabled
testvol3 qtree2 unix enabled
testvol4 unix enabled
testvol4 qtree1 unix enabled
And I want an output of this:
testvol1... (4 Replies)
Discussion started by: niap21
4 Replies
8. UNIX for Dummies Questions & Answers
Hi all,
I have 89 columns,1200 rows in a flat file, some of the values are just '.' (the character dot). I want to replace them by nothing (blank), but when I do so, it affects the decimal numbers too. so 12.34 becomes 1234.
How can I just replace values which are only '.' with 1 white... (13 Replies)
Discussion started by: newbie83
13 Replies
9. Shell Programming and Scripting
Hi Folks,
I have a huge data of the below format
abc #apple 1200 06/23
ghj #orange 1500 06/27
uyt #banana 2300 05/13
efg #vegetable 0700 04/16
After first 3 letters, i have 9 spaces and after fruit there are no specific fixed space, but it varies... (4 Replies)
Discussion started by: jayadanabalan
4 Replies
10. Post Here to Contact Site Administrators and Moderators
In file, we have millions of records each of 1000 in length. And at specific position say 800 there is a space, we need to replace it with Character X if the ID in that row starts with 123.
So far i have used the below which is replacing space at that position to X but its not checking for... (3 Replies)
Discussion started by: Jagmeet Singh
3 Replies
LEARN ABOUT PLAN9
keyboard
KEYBOARD(6) Games Manual KEYBOARD(6)
NAME
keyboard - how to type characters
DESCRIPTION
Keyboards are idiosyncratic. It should be obvious how to type ordinary ASCII characters, backspace, tab, escape, and newline. In Plan 9,
the key labeled Return or Enter generates a newline (0x0A); if there is a key labeled Line Feed, it generates a carriage return (0x0D);
Plan 9 eschews CRLFs. All control characters are typed in the usual way; in particular, control-J is a line feed and control-M a carriage
return. On the PC and some other machines, the key labeled Caps Lock acts as an additional control key.
The delete character (0x7F) may be generated by a different key, one near the extreme upper right of the keyboard. On the Next it is the
key labeled (not the asterisk above the 8). On the SLC and Sparcstation 2, delete is labeled Num Lock (the key above Backspace labeled
Delete functions as an additional backspace key). On the other keyboards, the key labeled Del or Delete generates the delete character.
The view character (0x80), used by 81/2(1) and sam(1), causes windows to scroll forward. It is generally somewhere near the lower right of
the main key area. The scroll character is generated by the VIEW key on the Gnot, the Alt Graph key on the SLC, and any of the three arrow
keys <-, v, and -> on the other terminals.
Characters in Plan 9 are runes (see utf(6)). Any 16-bit rune can be typed using a compose key followed by several other keys. The compose
key is also generally near the lower right of the main key area: the NUM PAD key on the Gnot, the Alternate key on the Next, the Compose
key on the SLC, the Option key on the Magnum, and either Alt key on the PC. After typing the compose key, type a capital and exactly four
hexadecimal characters (digits and to to type a single rune with the value represented by the typed number. There are shorthands for many
characters, comprising the compose key followed by a two- or three-character sequence. There are several rules guiding the design of the
sequences, as illustrated by the following examples. The full list is too long to repeat here, but is contained in the file in a format
suitable for grep(1) or look(1).
A repeated symbol gives a variant of that symbol, e.g., ?? yields c.
ASCII digraphs for mathematical operators give the corresponding operator, e.g., <= yields <=.
Two letters give the corresponding ligature, e.g., AE yields AE.
Mathematical and other symbols are given by abbreviations for their names, e.g., pg yields 9|.
Chess pieces are given by a w or b followed by a letter for the piece (k for king, q for queen, r for rook, n for knight, b for
bishop, or p for pawn), e.g., wk for a white king.
Greek letters are given by an asterisk followed by a corresponding latin letter, e.g., *d yields d.
Cyrillic letters are given by an at sign followed by a corresponding latin letter or letters, e.g., @ya yields .
Script letters are given by a dollar sign followed by the corresponding regular letter, e.g., $F yields .
A digraph of a symbol followed by a letter gives the letter with an accent that looks like the symbol, e.g., ,c yields c.
Two digits give the fraction with that numerator and denominator, e.g., 12 yields 1/2.
The letter s followed by a character gives that character as a superscript, e.g., s1 yields 1.
Sometimes a pair of characters give a symbol related to the superimposition of the characters, e.g., cO yields (C).
A mnemonic letter followed by $ gives a currency symbol, e.g., l$ yields L.
Note the difference between B (ss) and u (micron) and the Greek B and u.
FILES
/lib/keyboard
sorted table of characters and keyboard sequences
SEE ALSO
intro(1), ascii(1), tcs(1), 81/2(1), sam(1), cons(3), utf(6)
KEYBOARD(6)