02-04-2010
Beautiful - it works!
Thanks!
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
How would you replace the n character in a file with some xyz? (2 Replies)
Discussion started by: JosephGerard
2 Replies
2. Shell Programming and Scripting
Hi,
I want to replace a character in every line in the file
say the file looks like this
SOBO20060830094122140014541834 WENP0414541835 ]
SOBO20060830094121140014541834 WENP0414541835
SOBO20060830094121140014541834 WENP0414541835
I want to replace the blue 00 by TS. (6 Replies)
Discussion started by: preethgideon
6 Replies
3. Shell Programming and Scripting
suppose u have a file
aas P-H 123
gdg O-U 223
hdy I-Y 12
fgd K-O 333
ssa L-P 32
output shud be like that
aas P123H
gdg O223U
hdy I12Y
fgd K333O
ssa L32P
thanks (7 Replies)
Discussion started by: cdfd123
7 Replies
4. Shell Programming and Scripting
Hi All,
I have file contains the following information.
chem00s4.mis.amat.com ] Critical 3/21
chem00s4.mis.amat.com ] Normal 3/22
chem00s4.mis.amat.com ] Normal 3/23
chem00s4.mis.amat.com ] Normal 3/24
chem00s4.mis.amat.com ] Critical 3/25... (2 Replies)
Discussion started by: ntgobinath
2 Replies
5. 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
6. Shell Programming and Scripting
Hi,
I need to replace a character in a specific position in only the first line of a
file (actually many files). Change T to a P in position 103.
I'm on solaris and my implementation of sed doesn't have the -r capability.
Thx,
Tim (8 Replies)
Discussion started by: web-guy01
8 Replies
7. 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
8. Shell Programming and Scripting
Hello,
Can anyone help me?
I need to replace the letters (A, B, C..) of the second column in this file by a number i.e. 1.
current file
0123456 0A123 0003355 Marion
1234567 0B117 0003388 Anthony
1112333 0C345 0459877 Ann
new file
0123456 01123 0003355 Marion
1234567 ... (3 Replies)
Discussion started by: Lilu_CK
3 Replies
9. UNIX for Dummies Questions & Answers
Hi
I have a large txt file on my AIX server and I need to replace some text using two other files. So filename1 has about 500 lines similar to:
txtcode SYStem100
I have the string I want to change in string2 and the new stringname in string3. Does anyone know a way of doing this? I have... (1 Reply)
Discussion started by: Grueben
1 Replies
10. Shell Programming and Scripting
I have a data like this in a file.
05/08/2017,U,01,116326001
05/08/2017,U,01,116226001
05/08/2017,U,01,116726323
05/08/2017,U,01,116236001
I want replace the date(1st column) of all records.
Ex: 05/08/2017 to 04/02/2017
Please use CODE tags when displaying sample input, sample output,... (1 Reply)
Discussion started by: Artlk
1 Replies
LEARN ABOUT MOJAVE
tcl_unicharisalpha
Tcl_UniCharIsAlpha(3) Tcl Library Procedures Tcl_UniCharIsAlpha(3)
__________________________________________________________________________________________________________________________________________________
NAME
Tcl_UniCharIsAlnum, Tcl_UniCharIsAlpha, Tcl_UniCharIsControl, Tcl_UniCharIsDigit, Tcl_UniCharIsGraph, Tcl_UniCharIsLower,
Tcl_UniCharIsPrint, Tcl_UniCharIsPunct, Tcl_UniCharIsSpace, Tcl_UniCharIsUpper, Tcl_UniCharIsWordChar - routines for classification of
Tcl_UniChar characters
SYNOPSIS
#include <tcl.h>
int
Tcl_UniCharIsAlnum(ch)
int
Tcl_UniCharIsAlpha(ch)
int
Tcl_UniCharIsControl(ch)
int
Tcl_UniCharIsDigit(ch)
int
Tcl_UniCharIsGraph(ch)
int
Tcl_UniCharIsLower(ch)
int
Tcl_UniCharIsPrint(ch)
int
Tcl_UniCharIsPunct(ch)
int
Tcl_UniCharIsSpace(ch)
int
Tcl_UniCharIsUpper(ch)
int
Tcl_UniCharIsWordChar(ch)
ARGUMENTS
int ch (in) The Tcl_UniChar to be examined.
_________________________________________________________________
DESCRIPTION
All of the routines described examine Tcl_UniChars and return a boolean value. A non-zero return value means that the character does belong
to the character class associated with the called routine. The rest of this document just describes the character classes associated with
the various routines.
Note: A Tcl_UniChar is a Unicode character represented as an unsigned, fixed-size quantity.
CHARACTER CLASSES
Tcl_UniCharIsAlnum tests if the character is an alphanumeric Unicode character.
Tcl_UniCharIsAlpha tests if the character is an alphabetic Unicode character.
Tcl_UniCharIsControl tests if the character is a Unicode control character.
Tcl_UniCharIsDigit tests if the character is a numeric Unicode character.
Tcl_UniCharIsGraph tests if the character is any Unicode print character except space.
Tcl_UniCharIsLower tests if the character is a lowercase Unicode character.
Tcl_UniCharIsPrint tests if the character is a Unicode print character.
Tcl_UniCharIsPunct tests if the character is a Unicode punctuation character.
Tcl_UniCharIsSpace tests if the character is a whitespace Unicode character.
Tcl_UniCharIsUpper tests if the character is an uppercase Unicode character.
Tcl_UniCharIsWordChar tests if the character is alphanumeric or a connector punctuation mark.
KEYWORDS
unicode, classification
Tcl 8.1 Tcl_UniCharIsAlpha(3)