Sponsored Content
Top Forums Shell Programming and Scripting awk- comparing fields from the same column, finding discontinuities. Post 302513999 by mirni on Thursday 14th of April 2011 01:16:10 PM
Old 04-14-2011
Sorry, I had an extra brace there at the beginning... I fixed the original reply.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Finding the total of a column using awk

Here is my file name countries USSR 8650 262 Asia Canada 3852 24 North America China 3692 866 Asia USA 3615 219 North America Brazil 3286 116 South America India 1269 637 Asia Argentina 1072 ... (8 Replies)
Discussion started by: ironhead3fan
8 Replies

2. Shell Programming and Scripting

finding greatest value in a column using awk from iostat output in linux

Friends, . On linux i have to run iostat command and in each iteration have to print the greatest value in each column. e.g iostat -dt -kx 2 2 | awk ' !/sd/ &&!/%util/ && !/Time/ && !/Linux/ {print $12}' 4.38 0.00 0.00 0.00 What i would like to print is only the... (3 Replies)
Discussion started by: achak01
3 Replies

3. Programming

comparing two fields from two different files in AWK

Hi, I have two files formatted as following: File 1: (user_num_ID , realID) (the NR here is 41671) 1 cust_034_60 2 cust_80_91 3 cust_406_4 .. .. File 2: (realID , clusterNumber) (total NR here is 1000) cust_034_60 2 cust_406_4 3 .. .. (11 Replies)
Discussion started by: amarn
11 Replies

4. Shell Programming and Scripting

Comparing two csv file fields using awk script

Hi All, I want to remove the rows from File1.csv by comparing the columns/fields in the File2.csv. I only need the records whose first column is same and the second column is different for the same record in both files.Here is an example on what I need. File1.csv: RAJAK|ACTIVE|1... (2 Replies)
Discussion started by: rajak.net
2 Replies

5. UNIX for Dummies Questions & Answers

Compare values of fields from same column with awk

Hi all ! If there is only one single value in a column (e.g. column 1 below), then return this value in the same output column. If there are several values in the same column (e.g. column 2 below), then return the different values separated by "," in the output. pipe-separated input: ... (11 Replies)
Discussion started by: lucasvs
11 Replies

6. UNIX for Dummies Questions & Answers

Comparing multiple fields from 2 files uing awk

Hi I have 2 files as below File 1 Chr Start End chr1 120 130 chr1 140 150 chr2 130 140 File2 Chr Start End Value chr1 121 128 ABC chr1 144 149 XYZ chr2 120 129 PQR I would like to compare these files using awk; specifically if column 1 of file1 is equal to column 1 of file2... (7 Replies)
Discussion started by: sshetty
7 Replies

7. Shell Programming and Scripting

Join fields comparing 4 fields using awk

Hi All, I am looking for an awk script to do the following Join the fields together only if the first 4 fields are same. Can it be done with join function in awk?? a,b,c,d,8,,, a,b,c,d,,7,, a,b,c,d,,,9, a,b,p,e,8,,, a.b,p,e,,9,, a,b,p,z,,,,9 a,b,p,z,,8,, desired output: ... (1 Reply)
Discussion started by: aksijain
1 Replies

8. Shell Programming and Scripting

Finding out the common lines in two files using 4 fields with the help of awk and UNIX

Dear All, I have 2 files. If field 1, 2, 4 and 5 matches in both file1 and file2, I want to print the whole line of file1 and file2 one after another in my output file. File1: sc2/80 20 . A T 86 F=5;U=4 sc2/60 55 . G T ... (1 Reply)
Discussion started by: NamS
1 Replies

9. Shell Programming and Scripting

UNIX append field with comparing fields from multiple column

I have a csv dump from sql server that needs to be converted so it can be feed to another program. I already sorted on field 1 but there are multiple columns with same field 1 where it needs to be compared against and if it is same then append field 5. i.e from ANG SJ,0,B,LC22,LC22(0) BAT... (2 Replies)
Discussion started by: nike27
2 Replies

10. Shell Programming and Scripting

Append data with substring of nth column fields using awk

Hi guys, I have problem to append new data at the end of each line of the files where it takes whole value of the nth column. My expected result i just want to take a specific value only. This new data is based on substring of 11th, 12th 13th column that has comma seperated value. My code: awk... (4 Replies)
Discussion started by: null7
4 Replies
xcb_xkb_list_components(3)					   XCB Requests 					xcb_xkb_list_components(3)

NAME
xcb_xkb_list_components - SYNOPSIS
#include <xcb/xkb.h> Request function xcb_xkb_list_components_cookie_t xcb_xkb_list_components(xcb_connection_t *conn, xcb_xkb_device_spec_t deviceSpec, uint16_t maxNames, uint8_t keymapsSpecLen, const xcb_xkb_string8_t *keymapsSpec, uint8_t keycodesSpecLen, const xcb_xkb_string8_t *keycodesSpec, uint8_t typesSpecLen, const xcb_xkb_string8_t *typesSpec, uint8_t compatMapSpecLen, const xcb_xkb_string8_t *compatMapSpec, uint8_t symbolsSpecLen, const xcb_xkb_string8_t *symbolsSpec, uint8_t geometrySpecLen, const xcb_xkb_string8_t *geometrySpec); Reply datastructure typedef struct xcb_xkb_list_components_reply_t { uint8_t response_type; uint8_t deviceID; uint16_t sequence; uint32_t length; uint16_t nKeymaps; uint16_t nKeycodes; uint16_t nTypes; uint16_t nCompatMaps; uint16_t nSymbols; uint16_t nGeometries; uint16_t extra; uint8_t pad0[10]; } xcb_xkb_list_components_reply_t; Reply function xcb_xkb_list_components_reply_t *xcb_xkb_list_components_reply(xcb_connection_t *conn, xcb_xkb_list_components_cookie_t cookie, xcb_generic_error_t **e); Reply accessors int xcb_xkb_list_components_keymaps_length(const xcb_xkb_list_components_reply_t *reply); xcb_xkb_listing_iterator_t xcb_xkb_list_components_keymaps_iterator(const xcb_xkb_list_components_reply_t *reply); int xcb_xkb_list_components_keycodes_length(const xcb_xkb_list_components_reply_t *reply); xcb_xkb_listing_iterator_t xcb_xkb_list_components_keycodes_iterator(const xcb_xkb_list_components_reply_t *reply); int xcb_xkb_list_components_types_length(const xcb_xkb_list_components_reply_t *reply); xcb_xkb_listing_iterator_t xcb_xkb_list_components_types_iterator(const xcb_xkb_list_components_reply_t *reply); int xcb_xkb_list_components_compat_maps_length(const xcb_xkb_list_components_reply_t *reply); xcb_xkb_listing_iterator_t xcb_xkb_list_components_compat_maps_iterator(const xcb_xkb_list_components_reply_t *reply); int xcb_xkb_list_components_symbols_length(const xcb_xkb_list_components_reply_t *reply); xcb_xkb_listing_iterator_t xcb_xkb_list_components_symbols_iterator(const xcb_xkb_list_components_reply_t *reply); int xcb_xkb_list_components_geometries_length(const xcb_xkb_list_components_reply_t *reply); xcb_xkb_listing_iterator_t xcb_xkb_list_components_geometries_iterator(const xcb_xkb_list_components_reply_t *reply); REQUEST ARGUMENTS
conn The XCB connection to X11. deviceSpec TODO: NOT YET DOCUMENTED. maxNames TODO: NOT YET DOCUMENTED. keymapsSpecLen TODO: NOT YET DOCUMENTED. keymapsSpec TODO: NOT YET DOCUMENTED. keycodesSpecLen TODO: NOT YET DOCUMENTED. keycodesSpec TODO: NOT YET DOCUMENTED. typesSpecLen TODO: NOT YET DOCUMENTED. typesSpec TODO: NOT YET DOCUMENTED. compatMapSpecLen TODO: NOT YET DOCUMENTED. compatMapSpec TODO: NOT YET DOCUMENTED. symbolsSpecLen TODO: NOT YET DOCUMENTED. symbolsSpec TODO: NOT YET DOCUMENTED. geometrySpecLen TODO: NOT YET DOCUMENTED. geometrySpec TODO: NOT YET DOCUMENTED. REPLY FIELDS
response_type The type of this reply, in this case XCB_XKB_LIST_COMPONENTS. 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. nKeymaps TODO: NOT YET DOCUMENTED. nKeycodes TODO: NOT YET DOCUMENTED. nTypes TODO: NOT YET DOCUMENTED. nCompatMaps TODO: NOT YET DOCUMENTED. nSymbols TODO: NOT YET DOCUMENTED. nGeometries TODO: NOT YET DOCUMENTED. extra TODO: NOT YET DOCUMENTED. DESCRIPTION
RETURN VALUE
Returns an xcb_xkb_list_components_cookie_t. Errors have to be handled when calling the reply function xcb_xkb_list_components_reply. If you want to handle errors in the event loop instead, use xcb_xkb_list_components_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_list_components(3)
All times are GMT -4. The time now is 12:48 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy