08-01-2019
Thanks for the reply! I tried it but it produced an empty output.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi Friends,
Can any of you explain me about the below line of code?
mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`
Im not able to understand, what exactly it is doing :confused:
Any help would be useful for me.
Lokesha (4 Replies)
Discussion started by: Lokesha
4 Replies
2. Shell Programming and Scripting
Hello All,
I am trying to figure out how to use the read command. I have a txt file that has rows looking something like this:
1 2 3 4 5 6 7 8 9
where each number represents an entry of various characters deliminated by tabs.
My goal is to set entries 2-7 as a variable/string that I... (3 Replies)
Discussion started by: Torinator
3 Replies
3. Shell Programming and Scripting
hi All,
cat file_name | awk /^~/'{print $1","$2","$3","$4}' | sed -e 's/~//g'
Can this be done by using sed or awk alone (4 Replies)
Discussion started by: harshakusam
4 Replies
4. Shell Programming and Scripting
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
Discussion started by: shis100
7 Replies
5. UNIX for Dummies Questions & Answers
Hi all,
I have this text file containing 9 columns separated by space. The 8th columns contains the numbers.
C1 C2 C3 C4 C5 C6 C7 C8 C9
er rt yt gh iu nk il 0.07 xs
yt lr ty bg iu zk nh 0,0005 lt
...etc.
I want to replace the comma with full stop only in 8th coloumn.
the output... (8 Replies)
Discussion started by: Unilearn
8 Replies
6. Shell Programming and Scripting
hi,
please can I ask you for some help? I have data from 3D situation, x y z value
I'd like to use gnuplot to generate maps of the value in the planes z=0 to z=1 for example, my file looks
like
-0,012 0,0060 0,0 0,13972813076023477
-0,012 0,0064319163 4,2894483E-4 ... (1 Reply)
Discussion started by: kocour
1 Replies
7. Shell Programming and Scripting
I have a file1.txt
file1.txt
F-120009210","Felix","U-M-F-F-F-","white","yes","no","U-M-F-F-F-","Bristol","RI","true"
F-120009213","Fluffy","U-F-","white","yes","no","M-F-","Warwick","RI","true"
U-120009217","Lity","U-M-","grey","yes","yes","","Fall River","MA","true"... (4 Replies)
Discussion started by: charles33
4 Replies
8. Shell Programming and Scripting
Look at the following data file(cou.data) which has four fields separated by tab.
Four fields are country name, land area, population, continent where it belongs.
As for country name or continent name which has two words, two words are separated by space.
(Data are not accurately... (1 Reply)
Discussion started by: chihuyu
1 Replies
9. Shell Programming and Scripting
Hello.
System : opensuse leap 42.3
I have a bash script that build a text file.
I would like the last command doing :
print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt
where :
print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies
10. Shell Programming and Scripting
Hello,
This post is already here but want to do this with another way
Merge multiples files with multiples duplicates keys by filling "NULL" the void columns for anothers joinning files
file1.csv:
1|abc
1|def
2|ghi
2|jkl
3|mno
3|pqr
file2.csv:
1|123|jojo
1|NULL|bibi... (2 Replies)
Discussion started by: yjacknewton
2 Replies
LEARN ABOUT CENTOS
xcb_randr_get_output_info_crtcs
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)