Hi,
Please find the Question Summary below-
In our email template document(.txt) bullets and Apostrophe are getting replaced by the string "£" in our Live environment.We are using sun solaris 8 in live.
Can anybody let me know why this happens and how to prevent this .
Thanks... (0 Replies)
Hello,
I have a variable that displays the following results from a JVM....
1602100K->1578435K
I would like to collect the value of 1578435 which is the value after a garbage collection. I've tried the following command but it looks like I can't get the > to work. Any suggestions as... (4 Replies)
Hi all
I want to do a simple substitution in awk but I am getting unexpected output. My function accepts a time and then prints out a validation message if the time is valid. However some times may include a : and i want to strip this out if it exists before i get to the validation. I have shown... (4 Replies)
Hello,
i am trying to write a script file in awk which yields me the number of lines,characters and words, i checked it many many times but i am not able to find any mistake in it. Please tell me where i went wrong.
BEGIN{
print "Filename Lines Words Chars\n"
}
{
filename=filename + 1... (2 Replies)
Hi All,
I am another biologist attempting to parse a large txt file containing several million lines like:
tucosnp 56762 T Y 228 228 60 23 .CcCcc,,..c.c,cc,,.C...
What I need to do is get the frequency of periods (.) plus commas (,) in column 9, and populate this number into another... (1 Reply)
Is there a way to substitute the URL-encoding references of ( & and ` ) with their actual appearance? for example....
%26 is &
say I want to convert every %26 in my file to &.....
awk '{gsub(/%26/,"&");print}'
Is there a way to do this?
I also want to be able to convert ` too! (3 Replies)
Hi, I want to print the first column with original value and without any double quotes
The output should look like
<original column>|<column without quotes>
$ cat a.txt
"20121023","19301229712","100397"
"20121023","19361629712","100778"
"20121030A","19361630412","100838"... (3 Replies)
I need a scripting AWK to compare 2 files.
file 1 and 2 are list of keywords
1 is
a
b
c
d
2 is
aa
aaa
b
bb
ccc
d
I want the AWK script to give us the number of times every keyword in file 1 occurs in file 2.
output should be
a 2 (7 Replies)
Hi I have a source file that looks like
a,b,c,d,e,f,g,h,t,DISTI(USD),MSRP(USD),DIST(EUR),MSRP(EUR),EMEA-DISTI(USD),EMEA-MSRP(USD),GLOBAl-DISTI(USD),GLOBAL-MSRP(USD),DISTI(GBP), MSRP(GBP)
I want to basically change MSRP(USD) to MSRP,USD and DIST(EUR) to DIST,EUR and likewise for all i'm using... (3 Replies)
Discussion started by: r_t_1601
3 Replies
LEARN ABOUT CENTOS
xml::dom::characterdata
XML::DOM::CharacterData(3) User Contributed Perl Documentation XML::DOM::CharacterData(3)NAME
XML::DOM::CharacterData - Common interface for Text, CDATASections and Comments
DESCRIPTION
XML::DOM::CharacterData extends XML::DOM::Node
The CharacterData interface extends Node with a set of attributes and methods for accessing character data in the DOM. For clarity this set
is defined here rather than on each object that uses these attributes and methods. No DOM objects correspond directly to CharacterData,
though Text, Comment and CDATASection do inherit the interface from it. All offsets in this interface start from 0.
METHODS
getData and setData (data)
The character data of the node that implements this interface. The DOM implementation may not put arbitrary limits on the amount of
data that may be stored in a CharacterData node. However, implementation limits may mean that the entirety of a node's data may not fit
into a single DOMString. In such cases, the user may call substringData to retrieve the data in appropriately sized pieces.
getLength
The number of characters that are available through data and the substringData method below. This may have the value zero, i.e.,
CharacterData nodes may be empty.
substringData (offset, count)
Extracts a range of data from the node.
Parameters:
offset Start offset of substring to extract.
count The number of characters to extract.
Return Value: The specified substring. If the sum of offset and count exceeds the length, then all characters to the end of the data
are returned.
appendData (str)
Appends the string to the end of the character data of the node. Upon success, data provides access to the concatenation of data and
the DOMString specified.
insertData (offset, arg)
Inserts a string at the specified character offset.
Parameters:
offset The character offset at which to insert.
arg The DOMString to insert.
deleteData (offset, count)
Removes a range of characters from the node. Upon success, data and length reflect the change. If the sum of offset and count exceeds
length then all characters from offset to the end of the data are deleted.
Parameters:
offset The offset from which to remove characters.
count The number of characters to delete.
replaceData (offset, count, arg)
Replaces the characters starting at the specified character offset with the specified string.
Parameters:
offset The offset from which to start replacing.
count The number of characters to replace.
arg The DOMString with which the range must be replaced.
If the sum of offset and count exceeds length, then all characters to the end of the data are replaced (i.e., the effect is the same as
a remove method call with the same range, followed by an append method invocation).
perl v5.16.3 2000-01-31 XML::DOM::CharacterData(3)