Welcome to forums, please use code tags as per forum rules for commands/codes/Inputs which you are using into your posts. Could you please try following and let me know if this helps you.
Output will be as follows.
Thanks,
R. Singh
Hi,
I have a file named "Test_2008_01_21"
The file contains a string "manual" that occurs many times in the file
How can i find the positions of the string "manual" in the file
Ex: if the string " manual " occurs three times in the file. i want to replace the second occurance of string... (6 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..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)
To trim 3rd field in for all the lines of a file and replace the modified string in that particular field.
For example i have a file called Temp.txt having content
Temp.txt
-----------------
100,234,M1234
400,234,K1734
300,345,T3456
----------------
So the modified file output should... (4 Replies)
Hi,
i call my shell like:
my_shell "my project name"
my script:
#!/bin/bash -vx
projectname=$1
sed s/'PROJECT_NAME ='/'PROJECT_NAME = '$projectname/ <test_config_doxy >temp
cp temp test_config_doxy
the following error occurres:
sed s/'PROJECT_NAME ... (2 Replies)
Hello everyone this is my first post of many to come :)
I am writing a script and in this script at one point i need to replace a character in a particular position in a string for example:
in the string "mystery" i would need to replace the 3rd position to an "r" so the string becomes... (3 Replies)
Hi
I am looking for a particular string in a file.If the string exists, then I want to replace another string with some other text.Once replaced, search for the same text after that character position in the file. :wall:
E.g: Actual File content:
Hello
Name: Nitin Raj
Welcome to Unix... (4 Replies)
I asked this before, but my problem got more complicated. Heres what I am trying to do:
I'm trying to replace a string at a certain location with another string.
Heres the file I'm trying to change:
\E
I want to replace the escape code at the 3rd line, 2nd column with this escape code... (3 Replies)
here is what i want to achieve... consider a file contains below contents. the file size is large about 60mb
cat dump.sql
INSERT INTO `table1` (`id`, `action`, `date`, `descrip`, `lastModified`) VALUES (1,'Change','2011-05-05 00:00:00','Account Updated','2012-02-10... (10 Replies)
Hi,
I have a file with multiple lines(fixed width dat file). I want to search for '02' in the positions 45-46 and if available, in that lines, I need to replace value in position 359 with blank. As I am new to unix, I am not able to figure out how to do this. Can you please help me to achieve... (9 Replies)
Discussion started by: Pradhikshan
9 Replies
LEARN ABOUT OSF1
xmlistreplaceitemsposunselected
XmListReplaceItemsPosUnselected(3X)XmListReplaceItemsPosUnselected(3X)NAME
XmListReplaceItemsPosUnselected - A List function that replaces items in a list without selecting the replacement items
SYNOPSIS
#include <Xm/List.h>
void XmListReplaceItemsPosUnselected (widget, new_items, item_count, position)
Widget widget;
XmString *new_items;
int item_count;
int position;
DESCRIPTION
XmListReplaceItemsPosUnselected replaces the specified number of items in the list with new items, starting at the given position. The
replacement items remain unselected, even if they currently appear in the XmNselectedItems list. Specifies the ID of the List widget to
replace items in. Specifies a pointer to the replacement items. Specifies the number of elements in new_items and the number of items in
the list to replace. This number must be non-negative. Specifies the position of the first item in the list to be replaced. A value of 1
indicates that the first item replaced is the first item in the list; a value of 2 indicates that it is the second item; and so on.
Beginning with the item specified in position, item_count items in the list are replaced with the corresponding elements from
new_items. That is, the item at position is replaced with the first element of new_items; the item after position is replaced with
the second element of new_items; and so on, until item_count is reached.
For a complete definition of List and its associated resources, see XmList(3X).
SEE ALSO XmList(3X)XmListReplaceItemsPosUnselected(3X)