Hi,
I've been charged with the task of finding out whether the scripts which we use on our current DYNIX (Sequent) UNIX box will continue to run happily on our soon-to-be-installed Sun Solaris box.
I'm fairly certain that they'll be OK, but I've heard mutterings about awk running differently... (2 Replies)
File_A contains Strings:
a
b
c
d
File_B contains Strings:
a
c
z
Need to have script written in either sh or ksh. Derive resultant files (File_New_A and File_New_B) from lists File_A and File_B where string elements in File_New_A and File_New_B are listed below.
Resultant... (7 Replies)
Hi
Hope you are having a great weeknd !! I had a question and need your expertise for this :
I have 2 files File1 & File2(of same structure) which I need to compare on some columns. I need to find the values which are there in File2 but not in File 1 and put the Differences in another file... (5 Replies)
I have been living with this problem with GNU sed v4.1.4 for a long time, but now I really need to figure it out.
When using a list in either an address or a search, the expression is matching lower and upper-case letters. works as it should.
For example, if I run
sed -nr "// p"... (7 Replies)
need a one liner to compare 2nd and 3rd field and print values that are not matched in 2nd field
Input
col 2 col 3
1.1.1.1 11.11.11.11
8.8.8.8 0.0.0.0
3.3.3.3 2.2.2.2
7.7.7.7 3.3.3.3
5.5.5.5 1.1.1.1
4.4.4.4
6.6.6.6
9.9.9.9
output
7.7.7.7 ... (12 Replies)
Hi,
I am running a script sample.sh in bash environment .In the script i am using sed and awk commands which when executed individually from terminal they are getting executed normally but when i give these sed and awk commands in the script it is giving the below errors :-
./sample.sh: line... (12 Replies)
Hi togehter!
I would like to write an awk script which prints the first column divided by the sum of the second column:
So if this is my list
1 2
2 1
3 1
4 1
it should print a list like this:
1/5
2/5
3/5
4/5
My idea was to use END like this: (3 Replies)
Not really sure how to accomplish this. If I have two lists with matching columns. Second column is different. I would like to show the differences plus/minus.
list1
device1 5
decive2 10
decive3 10
device4 10
device5 10
device6 20
list2
device1 10
... (1 Reply)
I am trying to find the differences between the two sorted, tab separated, attached files. Thank you :).
In update2 there are 52,058 lines and in current2 there are 52,197 so 139 differences should result.
However,
awk 'FNR==NR{a;next}!($0 in a)' update2 current2 > out2comm -1 -3... (2 Replies)
This seems pretty simple, but I cant figure it out. I get stumped on the simple things.
I am running two commands
1) take a listing a directory of files, and filter out the doc_name (which is in a series of extracted files), and place it in a file.
ls -l | awk '{print $9}' | grep... (5 Replies)
Discussion started by: jeffs42885
5 Replies
LEARN ABOUT CENTOS
xmlistreplaceitemspos
XmListReplaceItemsPos(library call) XmListReplaceItemsPos(library call)
NAME
XmListReplaceItemsPos -- A List function that replaces the specified elements in the list
SYNOPSIS
#include <Xm/List.h>
void XmListReplaceItemsPos(
Widget widget,
XmString *new_items,
int item_count,
int position);
DESCRIPTION
XmListReplaceItemsPos replaces the specified number of items of the List with new items, starting at the specified position in the List.
When the items are inserted into the list, they are compared with the current XmNselectedItems list. If any of the new items matches an
item on the selected list, it appears selected.
widget Specifies the ID of the List widget.
new_items Specifies the replacement items.
item_count
Specifies the number of items 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).
XmListReplaceItemsPos(library call)