<!-- Define an AJP 1.3 Connector on port 8009 -->
......
......
I wish to add the below text held by variable "addthisline" after the closing braces i.e --> once the first </Connector> tag is found.
Thus my searchstring is "</Connector>" and i need keep looking for the next "-->" entry post which I need to add the line contained in $addthisline
This injection should happen only for the first instance of " </Connector>" string found in the file.
Hi,
I file that has all the status for one day (24hours). Now what I want to do is to count the occurence of a string in its output hourly like for example count occurance of successful or asynchronous clear destinon for every hour and redirect it to file. Please see sample file below. Please... (2 Replies)
Hi
I have a file which contains the following two lines which are same But I would like to insert the value=8.8.8.8 in the 1st occurance line and value=9.9.9.9 in the 2nd occurance line.
<parameter name="TestIp1" value="">
<parameter name="TestIp1" value="">
Please suggest (1 Reply)
Hi All,
My requisite is to search for the string "0108"(which is the year and has come in the wrong year format) in a particular column say 4th column in a tab delimited file and then replace it with 2008(the correct year format) in the same position where 0108 was found..The issue is the last... (15 Replies)
Hi All,
My requisite is to search for the string "0108"(which is the year and has come in the wrong year format) in a particular column say 4th column in a tab delimited file and then replace it with 2008(the correct year format) in the same position where 0108 was found in the same file..The... (27 Replies)
I just want to add a particular string in text file using shell script
text file format
1 columns-10
2 text=89
3 no<>
4
5 test-9876
6 size=9
string need to insert in 4th line
<switch IP='158.195.2.567' port='5900' user='testc' password='asdfrp' Code='8'>
After inserting the... (8 Replies)
I need help on how I can accomplish my task. I hope someone can help me since I've researching and trying to accomplish this for hours now. Basically, I need to comment-out (or insert a # sign in the beginning of the line) a line when the line has the specific word I am searching. Example I have... (3 Replies)
I have text file as follows and would like to remove the last occurance of "UNION ALL" string and replace @@ with single quote (').
Input text in file is
with temp as (
( select ----------- where OPERATION = @@B@@ and OBJECTTYPE = @@P@@ and start_time desc ) UNION ALL
( select... (9 Replies)
Need Assistance in shell programming... I have a huge file which has multiple stations and i wanted to search particular station and extract few lines from it and the rest is not needed
Bold letters are the stations . The whole file has multiple stations .
Below example i wanted to search... (4 Replies)
I have two files
1. input.txt
2. keyword.txt
input.txt has contents like
.src_ref 0 "call.s" 24 first
0x000000 0x5a80 0x0060 BRA.l 0x60
.src_ref 0 "call.s" 30 first
0x000002 0x1bc5 RETI
.src_ref 0 "call.s" 31 first
0x000003 0x6840 ... (2 Replies)
Hi,
I am trying to organize a badly constructed web server. Basically every file is in public_html which is horrendous. There's about 50 images and 20 html files (not counting the css files and pdf docs).
I am trying to update each .html file using sed based on:
Where string contains *.jpg... (9 Replies)
Discussion started by: enginama
9 Replies
LEARN ABOUT ULTRIX
dwtcstextreplace
DwtCSTextReplace(3Dwt)DwtCSTextReplace(3Dwt)Name
DwtCSTextReplace - Replaces a portion of the current text in the compound-string text widget or inserts some new text into the current text
of the compound-string text widget.
Syntax
void DwtCSTextReplace(widget, from_pos, to_pos, value)
Widget widget;
int from_pos, to_pos;
DwtCompString value;
Arguments
widget Specifies the ID of the compound-string text widget.
from_pos Specifies the first character position of the compound-string text being replaced.
to_pos Specifies the last character position of the compound-string text being replaced.
value Specifies the text to replace part of the current text in the compound-string text widget.
Description
The DwtCSTextReplace function replaces part of the text in the compound-string text widget. Within the widget, positions are numbered
starting at 0 and increasing sequentially. For example, to replace the second and third characters in the text, from_pos should be 1 and
to_pos should be 3. To insert text after the fourth character, from_pos and to_pos should both be 4.
See AlsoDwtCSText(3Dwt), DwtCSTextCreate(3Dwt), DwtCSTextSetString(3Dwt), DwtCSTextGetEditable(3Dwt), DwtCSTextSetEditable(3Dwt), DwtCS-
TextGetMaxLength(3Dwt), DwtCSTextSetMaxLength(3Dwt), DwtCSTextSetSelection(3Dwt), DwtCSTextGetSelection(3Dwt)
Guide to the XUI Toolkit: C Language Binding
Guide to the XUI Toolkit Intrinsics: C Language Binding
DwtCSTextReplace(3Dwt)