Many thanks. it worked. I replaced the
and it zipped through a huge file of over 50,000+ compounds
As a matter of curiosity was a single apostrophe a typo? I work in a DOS environment and was this the reason?
I'm having a couple of issues. I'm trying to edit a nagios config and remove a host definition if a certain "host_name" is found. My thought is I would find host definition block containing the host_name I'm looking for and output the line numbers for the first and last lines. Using set, I will... (9 Replies)
Hi, I'm writing a ksh script and trying to use an awk / sed / or perl one-liner to remove the last 4 characters of a line in a file if it begins with a period.
Here is the contents of the file... the column in which I want to remove the last 4 characters is the last column. ($6 in awk). I've... (10 Replies)
Need to remove rest of line after the equals sign on search pattern from the searchfile. Can anybody help. Couldn't find any similar example in the forum:
infile:
64_1535: Delm. = 86 var, aaga
64_1535: Fran. = 57 ex. ccc
64_1639: Feb. = 26 (link). def
64_1817: mar. = 3/4. drz ... (7 Replies)
There are few files in my windows directory and I need a perl script to rename the files to its original names i.e., the last extension(.orig) needs to be removed programatically,
files in directory
data1.htm.orig
data2.htm.orig
data3.htm.orig
to be renamed to
data1.htm
data2.htm... (4 Replies)
Greetings All,
I would like to find all occurences of a pattern and delete a substring from the all matching lines EXCEPT the first. For example:
1234::group:user1,user2,user3,blah1,blah2,blah3
2222::othergroup:user9,user8
4444::othergroup2:user3,blah,blah,user1
1234::group3:user5,user1
... (11 Replies)
Hello,
I have a requirement to extract the value from multiple xml node and print out the values to new file to compare.
Would be done using either awk/perl or some unix script.
For example sample input file:
.....
.....
<factories xmi:type="resources.jdbc:DataSource"... (2 Replies)
OSX
I have been grinding my teeth on a portion of code. I am building a bash script that edits a html email template. In the template, I have place holders for SED (or whatever program is appropriate) to use as anchors for find and replace, with user defined corresponding html code. The HTML code... (3 Replies)
Discussion started by: sudo
3 Replies
LEARN ABOUT REDHAT
xmstringtabletoxmstring
XmStringTableToXmString(library call) XmStringTableToXmString(library call)
NAME
XmStringTableToXmString -- A convenience function that converts a compound string table to a single compound string
SYNOPSIS
#include <Xm/Xm.h>
XmString XmStringTableToXmString(
XmStringTable table,
Cardinal count,
XmString break_component);
DESCRIPTION
XmStringTableToXmString takes as input table of compound strings and a specified string component (such as a tab) and returns a single com-
pound string consisting of each of the elements of table concatenated together with a single copy of break_component inserted between each
element.
table Specifies an XmStringTable containing the compound strings to be converted.
count Specifies the number of compound strings in table.
break_component
Specifies the XmStringComponent that will be inserted in the result to separate the individual elements of table. The most useful
types will be XmSTRING_COMPONENT_SEPARATOR and XmSTRING_COMPONENT_TAB. Refer to the XmStringComponentType(3) reference page for
a complete list of possible component types. Note, however, that the XmSTRING_COMPONENT_UNKNOWN component is not a possible type.
RETURN
Returns a new XmString. The function will allocate space to hold the returned compound string. When the application no longer needs the
returned compound string, the application should call XmStringFree.
RELATED XmString(3), XmStringComponentType(3), and XmStringFree(3).
XmStringTableToXmString(library call)