03-07-2014
Thanks Srini for your reply. I will check tomorrow and update the status
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi I am very new to scripting,
Can someone show me how to (in unix shell script) compare the system's date with a date in a file. The requirement is to somehow open this file (which will only have a date in it) and compare it with today's date. If they are equal execute a procedure below but if... (4 Replies)
Discussion started by: siog
4 Replies
2. UNIX for Dummies Questions & Answers
Hello everyone, I'm in desperate need of your help for this challenge I have below:
The run_dt_tbl has only 1 column and 1 row that contains a particular date in format mmddyy. I want to some how compare today's date with the date in this table that will be preset by someone else. If the dates... (2 Replies)
Discussion started by: siog
2 Replies
3. Shell Programming and Scripting
I need help in file comparision.
I have two files in below format:
FILE_A:
-------
COL1 COL2 COL3 COL4 COL5
FILE_B:
-------
COL1A COL1B COL1C COL1D COL1E
i want to compare for a for each row in FILE_A and FILE_B
COL1 of FILE_A with COL1B of FILE_B
COL3 of FILE_A with COL1E of... (1 Reply)
Discussion started by: learnoutmore99
1 Replies
4. UNIX for Dummies Questions & Answers
Hi All,
i have a excel sheet with two columns as below.
column1 column2
100 100
200 300
300 400
400 400
500 600
i need to compare the values these two columns and the output should be printed in the third column...if these values are equal the output should be green and if these... (2 Replies)
Discussion started by: arunmanas
2 Replies
5. Shell Programming and Scripting
Dear everyone,
I need any sort of shell script or perl script would do the following. I have a txt file as follows:
;Stretnumber Resident Resdient (not in file)
16 John Mary
16 Mary Parker
16 Nancy Smith
16 Mary John
18 Trey ... (5 Replies)
Discussion started by: sasharma
5 Replies
6. Shell Programming and Scripting
In KSH, I am pasting 2 almost identical files together and each one has a date and time on each line. I need to determine if the first instance of the date/time is greater than the 2nd instance of the date/time. If the first instance is greater, I just need to echo that line.
I thought I would... (4 Replies)
Discussion started by: right_coaster
4 Replies
7. Shell Programming and Scripting
Hello guys, I am quite new to Shell Scripting and I need help for this
I have a CSV file like this:
Requisition,Order,RequisitionLineNumber,OrderLineNumber
REQ1,Order1,1,1
REQ1,Order1,1,3
REQ2,Order2,1,5
Basically what I want to do is compare the first 3 fields
If all 3 fields are the same... (5 Replies)
Discussion started by: jeffreybsu
5 Replies
8. Shell Programming and Scripting
i have the following files (all separated by tabs):
file 1.txt
1 yes
2 no
3 yes
4 yes
file 2.txt
a no
b no
c yes
d no
i combine the above files in file 3 which looks like
file 3.txt
1 yes a no
2 no b no
3 yes c yes
4 yes d no
now, i need to compare the values between column 2... (3 Replies)
Discussion started by: msonoth
3 Replies
9. Shell Programming and Scripting
I get the date that's inside a text file and assigned it to a variable. When I grep the date from the file, I get this,
Not After : Jul 28 14:09:57 2017 GMT
So I only crop out the date, with this command
echo $dateFile | cut -d ':' -f 2,4The result would be
Jul 28 14:57 2017 GMT
How do I... (3 Replies)
Discussion started by: Loc
3 Replies
10. UNIX for Beginners Questions & Answers
I'm trying to learn awk, but I've hit a roadblock with this problem. I have a hierarchy stored in a file with 3 columns:
id name parentID
4 D 2
2 B 1
3 C 1
1 A 5
I need to check if there are any values in column 3 that are not represented anywhere in column 1. I've tried this:
awk '{arr;}... (7 Replies)
Discussion started by: kaktus
7 Replies
LEARN ABOUT CENTOS
xcb_randr_get_output_info_clones_length
xcb_randr_get_output_info(3) XCB Requests xcb_randr_get_output_info(3)
NAME
xcb_randr_get_output_info -
SYNOPSIS
#include <xcb/randr.h>
Request function
xcb_randr_get_output_info_cookie_t xcb_randr_get_output_info(xcb_connection_t *conn, xcb_randr_output_t output,
xcb_timestamp_t config_timestamp);
Reply datastructure
typedef struct xcb_randr_get_output_info_reply_t {
uint8_t response_type;
uint8_t status;
uint16_t sequence;
uint32_t length;
xcb_timestamp_t timestamp;
xcb_randr_crtc_t crtc;
uint32_t mm_width;
uint32_t mm_height;
uint8_t connection;
uint8_t subpixel_order;
uint16_t num_crtcs;
uint16_t num_modes;
uint16_t num_preferred;
uint16_t num_clones;
uint16_t name_len;
} xcb_randr_get_output_info_reply_t;
Reply function
xcb_randr_get_output_info_reply_t *xcb_randr_get_output_info_reply(xcb_connection_t *conn, xcb_randr_get_output_info_cookie_t cookie,
xcb_generic_error_t **e);
Reply accessors
xcb_randr_crtc_t *xcb_randr_get_output_info_crtcs(const xcb_randr_get_output_info_request_t *reply);
int xcb_randr_get_output_info_crtcs_length(const xcb_randr_get_output_info_reply_t *reply);
xcb_generic_iterator_t xcb_randr_get_output_info_crtcs_end(const xcb_randr_get_output_info_reply_t *reply);
xcb_randr_mode_t *xcb_randr_get_output_info_modes(const xcb_randr_get_output_info_request_t *reply);
int xcb_randr_get_output_info_modes_length(const xcb_randr_get_output_info_reply_t *reply);
xcb_generic_iterator_t xcb_randr_get_output_info_modes_end(const xcb_randr_get_output_info_reply_t *reply);
xcb_randr_output_t *xcb_randr_get_output_info_clones(const xcb_randr_get_output_info_request_t *reply);
int xcb_randr_get_output_info_clones_length(const xcb_randr_get_output_info_reply_t *reply);
xcb_generic_iterator_t xcb_randr_get_output_info_clones_end(const xcb_randr_get_output_info_reply_t *reply);
uint8_t *xcb_randr_get_output_info_name(const xcb_randr_get_output_info_request_t *reply);
int xcb_randr_get_output_info_name_length(const xcb_randr_get_output_info_reply_t *reply);
xcb_generic_iterator_t xcb_randr_get_output_info_name_end(const xcb_randr_get_output_info_reply_t *reply);
REQUEST ARGUMENTS
conn The XCB connection to X11.
output TODO: NOT YET DOCUMENTED.
config_timestamp
TODO: NOT YET DOCUMENTED.
REPLY FIELDS
response_type
The type of this reply, in this case XCB_RANDR_GET_OUTPUT_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).
status TODO: NOT YET DOCUMENTED.
timestamp TODO: NOT YET DOCUMENTED.
crtc TODO: NOT YET DOCUMENTED.
mm_width TODO: NOT YET DOCUMENTED.
mm_height TODO: NOT YET DOCUMENTED.
connection
TODO: NOT YET DOCUMENTED.
subpixel_order
TODO: NOT YET DOCUMENTED.
num_crtcs TODO: NOT YET DOCUMENTED.
num_modes TODO: NOT YET DOCUMENTED.
num_preferred
TODO: NOT YET DOCUMENTED.
num_clones
TODO: NOT YET DOCUMENTED.
name_len TODO: NOT YET DOCUMENTED.
DESCRIPTION
RETURN VALUE
Returns an xcb_randr_get_output_info_cookie_t. Errors have to be handled when calling the reply function xcb_randr_get_output_info_reply.
If you want to handle errors in the event loop instead, use xcb_randr_get_output_info_unchecked. See xcb-requests(3) for details.
ERRORS
This request does never generate any errors.
SEE ALSO
AUTHOR
Generated from randr.xml. Contact xcb@lists.freedesktop.org for corrections and improvements.
XCB
2014-06-10 xcb_randr_get_output_info(3)