11-05-2012
Hi Pamu
Thanks for reply. Although I tried in different machines at my place and still it's not working.
But I found that Adenosine monotungstatate is not present in first file but still it shows matched becasue adenosine is present which will be wrong in my case as I have to match whole word present in first file with whole word in second file columns.
Let me know if you come across any solution.
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I have one situation. I have some 6-7 no. of files in one directory & I have to extract all the lines which exist in all these files. means I need to extract all common lines from all these files & put them in a separate file.
Please help. I know it could be done with the help of... (11 Replies)
Discussion started by: The Observer
11 Replies
2. Shell Programming and Scripting
Suppose we have 2 set of files
set 1 set 2
------ ------
abc hgb
def ppp
mgh vvv
nmk sdf
hgb ... (1 Reply)
Discussion started by: skyineyes
1 Replies
3. UNIX for Dummies Questions & Answers
Hi.
If we have this file
A B C
7 8 9
1 2 10
and this other file
A C D F
7 9 2 3
9 2 3 4
The result i´m looking for is intersection with A B C D F
so the answer here will be (10 Replies)
Discussion started by: alcalina
10 Replies
4. UNIX for Dummies Questions & Answers
I have two files in UNIX.
1st file is Entity and Second File is References. 1st File has only one column named Entity ID and 2nd file has two columns Entity ID | Person ID.
I want to produce a output file where entity id's are matching in both the files.
Entity File
624197
624252
624264... (4 Replies)
Discussion started by: PRS
4 Replies
5. Shell Programming and Scripting
Hi Friends,
I am new to Shell Scripting and need your help in the below situation.
- I have two files (File 1 and File 2) and the contents of the files are mentioned below.
- "Application handle" is the common field in both the files.
(NOTE :- PLEASE REFER TO THE ATTACHMENT "Compare files... (2 Replies)
Discussion started by: Santoshbn
2 Replies
6. Shell Programming and Scripting
I have this code
awk 'NR==FNR{a=$1;next} a' file1 file2
which does what I need it to do, but for only two files. I want to make it so that I can have multiple files (for example 30) and the code will return only the items that are in every single one of those files and ignore the ones... (7 Replies)
Discussion started by: castrojc
7 Replies
7. Shell Programming and Scripting
Good morning all,
I have a problem that is one step beyond a standard awk compare.
I would like to compare three files which have several thousand records against a fourth file. All of them have a value in each row that is identical, and one value in each of those rows which may be duplicated... (1 Reply)
Discussion started by: nashton
1 Replies
8. Shell Programming and Scripting
I have two directories
Dir 1
/home/sid/release1
Dir 2
/home/sid/release2
I want to find the common files between the two directories
Dir 1 files
/home/sid/release1>ls -lrt
total 16
-rw-r--r-- 1 sid cool 0 Jun 19 12:53 File123
-rw-r--r-- 1 sid cool 0 Jun 19 12:53... (5 Replies)
Discussion started by: sidnow
5 Replies
9. UNIX for Beginners Questions & Answers
Hi All,
i have below two files.
FILE:
NAME="/dev/sda" TYPE="disk" SIZE="60G" OWNER="root" GROUP="disk" MODE="brw-rw----" PKNAME="" MOUNTPOINT=""
NAME="/dev/sda1" TYPE="part" SIZE="500M" OWNER="root" GROUP="disk" MODE="brw-rw----" PKNAME="/dev/sda" MOUNTPOINT="/boot"
NAME="/dev/sda2"... (3 Replies)
Discussion started by: balu1234
3 Replies
LEARN ABOUT CENTOS
xcb_xkb_get_device_info_btn_actions_length
xcb_xkb_get_device_info(3) XCB Requests xcb_xkb_get_device_info(3)
NAME
xcb_xkb_get_device_info -
SYNOPSIS
#include <xcb/xkb.h>
Request function
xcb_xkb_get_device_info_cookie_t xcb_xkb_get_device_info(xcb_connection_t *conn, xcb_xkb_device_spec_t deviceSpec, uint16_t wanted,
uint8_t allButtons, uint8_t firstButton, uint8_t nButtons, xcb_xkb_led_class_spec_t ledClass, xcb_xkb_id_spec_t ledID);
Reply datastructure
typedef struct xcb_xkb_get_device_info_reply_t {
uint8_t response_type;
uint8_t deviceID;
uint16_t sequence;
uint32_t length;
uint16_t present;
uint16_t supported;
uint16_t unsupported;
uint16_t nDeviceLedFBs;
uint8_t firstBtnWanted;
uint8_t nBtnsWanted;
uint8_t firstBtnRtrn;
uint8_t nBtnsRtrn;
uint8_t totalBtns;
uint8_t hasOwnState;
uint16_t dfltKbdFB;
uint16_t dfltLedFB;
uint8_t pad0[2];
xcb_atom_t devType;
uint16_t nameLen;
} xcb_xkb_get_device_info_reply_t;
Reply function
xcb_xkb_get_device_info_reply_t *xcb_xkb_get_device_info_reply(xcb_connection_t *conn, xcb_xkb_get_device_info_cookie_t cookie,
xcb_generic_error_t **e);
Reply accessors
xcb_xkb_string8_t *xcb_xkb_get_device_info_name(const xcb_xkb_get_device_info_request_t *reply);
int xcb_xkb_get_device_info_name_length(const xcb_xkb_get_device_info_reply_t *reply);
xcb_generic_iterator_t xcb_xkb_get_device_info_name_end(const xcb_xkb_get_device_info_reply_t *reply);
xcb_xkb_action_t *xcb_xkb_get_device_info_btn_actions(const xcb_xkb_get_device_info_request_t *reply);
int xcb_xkb_get_device_info_btn_actions_length(const xcb_xkb_get_device_info_reply_t *reply);
xcb_xkb_action_iterator_t xcb_xkb_get_device_info_btn_actions_iterator(const xcb_xkb_get_device_info_reply_t *reply);
int xcb_xkb_get_device_info_leds_length(const xcb_xkb_get_device_info_reply_t *reply);
xcb_xkb_device_led_info_iterator_t xcb_xkb_get_device_info_leds_iterator(const xcb_xkb_get_device_info_reply_t *reply);
REQUEST ARGUMENTS
conn The XCB connection to X11.
deviceSpec
TODO: NOT YET DOCUMENTED.
wanted TODO: NOT YET DOCUMENTED.
allButtons
TODO: NOT YET DOCUMENTED.
firstButton
TODO: NOT YET DOCUMENTED.
nButtons TODO: NOT YET DOCUMENTED.
ledClass TODO: NOT YET DOCUMENTED.
ledID TODO: NOT YET DOCUMENTED.
REPLY FIELDS
response_type
The type of this reply, in this case XCB_XKB_GET_DEVICE_INFO. This field is also present in the xcb_generic_reply_t and can be
used to tell replies apart from each other.
sequence The sequence number of the last request processed by the X11 server.
length The length of the reply, in words (a word is 4 bytes).
deviceID TODO: NOT YET DOCUMENTED.
present TODO: NOT YET DOCUMENTED.
supported TODO: NOT YET DOCUMENTED.
unsupported
TODO: NOT YET DOCUMENTED.
nDeviceLedFBs
TODO: NOT YET DOCUMENTED.
firstBtnWanted
TODO: NOT YET DOCUMENTED.
nBtnsWanted
TODO: NOT YET DOCUMENTED.
firstBtnRtrn
TODO: NOT YET DOCUMENTED.
nBtnsRtrn TODO: NOT YET DOCUMENTED.
totalBtns TODO: NOT YET DOCUMENTED.
hasOwnState
TODO: NOT YET DOCUMENTED.
dfltKbdFB TODO: NOT YET DOCUMENTED.
dfltLedFB TODO: NOT YET DOCUMENTED.
devType TODO: NOT YET DOCUMENTED.
nameLen TODO: NOT YET DOCUMENTED.
DESCRIPTION
RETURN VALUE
Returns an xcb_xkb_get_device_info_cookie_t. Errors have to be handled when calling the reply function xcb_xkb_get_device_info_reply.
If you want to handle errors in the event loop instead, use xcb_xkb_get_device_info_unchecked. See xcb-requests(3) for details.
ERRORS
This request does never generate any errors.
SEE ALSO
AUTHOR
Generated from xkb.xml. Contact xcb@lists.freedesktop.org for corrections and improvements.
XCB
2014-06-10 xcb_xkb_get_device_info(3)