Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

xmlistreplaceitemsposunselected(3) [centos man page]

XmListReplaceItemsPosUnselected(library call)							     XmListReplaceItemsPosUnselected(library call)

NAME
XmListReplaceItemsPosUnselected -- A List function that replaces items in a list without selecting the replacement items SYNOPSIS
#include <Xm/List.h> void XmListReplaceItemsPosUnselected( 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. widget Specifies the ID of the List widget to replace items in. new_items Specifies a pointer to the replacement items. item_count Specifies the number of elements in new_items and the number of items in the list to replace. This number must be nonnegative. position 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(3). RELATED
XmList(3). XmListReplaceItemsPosUnselected(library call)

Check Out this Related Man Page

XmListReplaceItemsPosUnselected(library call)							     XmListReplaceItemsPosUnselected(library call)

NAME
XmListReplaceItemsPosUnselected -- A List function that replaces items in a list without selecting the replacement items SYNOPSIS
#include <Xm/List.h> void XmListReplaceItemsPosUnselected( 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. widget Specifies the ID of the List widget to replace items in. new_items Specifies a pointer to the replacement items. item_count Specifies the number of elements in new_items and the number of items in the list to replace. This number must be nonnegative. position 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(3). RELATED
XmList(3). XmListReplaceItemsPosUnselected(library call)
Man Page

15 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Comparing items in 2 files

Hi, I have 2 files with contents in them and I need to compare each item in each file. File1: item4 item5 File2: item2 item3 item5 item6 The items names can be of different lengths. If the items in the File1 are not in File2, delete the missing item in File1. The resulting... (12 Replies)
Discussion started by: ReV
12 Replies

2. Shell Programming and Scripting

sending control c in the loop

I want to go through the list of items and run it. while running it, some of them will have either >there is no response # and then end it... so that it can go to next item OR >there is response # but in order to break out of it, u need to do Control c. How do you send control... (6 Replies)
Discussion started by: hankooknara
6 Replies

3. Shell Programming and Scripting

Plain Text List to HTML List

Hello, I am trying to take a simple list (from echo, not a file) and turn it into a list with HTML codes. List item one. List item two. List item three. to <ol> <li>List item one.</li> <li>List item two.</li> <li>List item three.</li> </ol> The list is coming in via echo on... (4 Replies)
Discussion started by: QuestunAthority
4 Replies

4. UNIX for Dummies Questions & Answers

replace 0 with R at position 40

i have this contents: H,0100, 4022,FISHER810,6109566,,,,,0,562032, D,0100, 4022,FISHER810,6109566,,1,,,0,562032 if i see 0 at position 40, i want to replace with R. (7 Replies)
Discussion started by: tjmannonline
7 Replies

5. Shell Programming and Scripting

Replacing a position in a file

Hi I'm trying to use awk in a file(test123.dat). My requirement is to to check for the 65th position, if the 65th position is a space then replace the 65th position by the number 9. This is the code that i used: awk '{substr($0,65,1) ~ / / }{sub(substr($0,65,1),"9")}{print}' test123.dat ... (7 Replies)
Discussion started by: angelarosh
7 Replies

6. Shell Programming and Scripting

Compare 2 files

HI I have a list of items in 2 files. Some items are present in both the files in any order. Say for example item name is 'apple', it may be present in line 2 of file 1 and line 10 of file 2. I want to see the missing items only. In simple terms, Items present in file1 if not in file2 then... (5 Replies)
Discussion started by: PrasannaKS
5 Replies

7. UNIX for Dummies Questions & Answers

replace position

my file: S10000000146981+0000003113079+0000000096981 i'd like to copy position 31-44, and paste onto position 3-16 i'd like to replace position 31-44 with 0 (zero) my final file should look like this: S10000000096981+0000003113079+0000000000000 thanks in advanced. (10 Replies)
Discussion started by: tjmannonline
10 Replies

8. Shell Programming and Scripting

Replacing content from a list

Okay, so I am not quite sure the best way of going about this. I have a whole stack of files that need items replaced with a code corresponding to it. In particular, I am looking to replace the names of countries with the two letter iso country code. The files themselves are in csv format with... (4 Replies)
Discussion started by: johnlee
4 Replies

9. Shell Programming and Scripting

position specific replace in file

How to replace the position specific values in the file.. i searched a lot the forums but i couldn't able to do... i have file like below 576666666666666666666666666 7878 897987 121 0asdas Y12 5900fbb 777 09JJJ 78798347892374 234234234364 234232898 89HJHIHIGIUG989902743748327khjkhkjlh... (6 Replies)
Discussion started by: greenworld123
6 Replies

10. Shell Programming and Scripting

Sed -f alternatives?

I have a list of items (control file) that I want to substitute in a text file, and it's BIG. The file has two items, the original, and the new: A B B C D E The file has something like 10,000 entries. So in the oldfile.txt, I'd like to basically make all these expression matched... (9 Replies)
Discussion started by: twoblink
9 Replies

11. UNIX for Dummies Questions & Answers

[Solved] Delete files with condition

I have a directory containing thousands of items “video files”, these items were generated by an application, which generates two items with the same name but with different extensions “.avi and .mp4”. There was a tool in my application to remove one item @ a time. Later I found this tool removes... (5 Replies)
Discussion started by: awadeid
5 Replies

12. UNIX for Dummies Questions & Answers

Multiple replacement

Hi friends Hope, you all are doing well I need your help for doing multiple strings replacement. I have a file with more than 1000 lines and I want to replace several elements in the same run. I have the equivalences written in another file. Example: target file Start (bp) End (bp) ... (6 Replies)
Discussion started by: lsantome
6 Replies

13. Shell Programming and Scripting

Associative Array with more than one item per entry

Hi all I have a problem where i have a large list ( up to 1000 of items) and need to have 2 items pulled from it into variables in a bash script my list is like the following and I could have it as an array or possibly an external text file maintained separately. Every line is different and... (6 Replies)
Discussion started by: kcpoole
6 Replies

14. Shell Programming and Scripting

Need help on find and replacement on specific line and position

I have a file with 100 lines. On 50 th line , from position 5 to rest of the data , I need to change the occurrence of A to B and Occurrence of M to N. Input file : Line1 Line2 Line3 -- -- 12345ABCDEFM --- -- Line 100 Output Line1 Line2 (40 Replies)
Discussion started by: Rajesh_us
40 Replies

15. What is on Your Mind?

Who would you employ?

Hi guys... I will be retiring soon and we are looking at someone to replace me. My question is if you were in the position to employ someone in your business what type of person would you be looking for to replace a retiree to take said retiree's place? 1) An amateur,(like me), who has... (15 Replies)
Discussion started by: wisecracker
15 Replies