02-18-2009
Thanks for the reply.
this is the output I am getting
sh swa.sh
1,6 2,7 3,8 4,9 5,10
1,11 2,12 3,13 4,14 5,15
But I expect the output to be 1,6,11 2,7,12 3,8,13 4,9,14 5,10,15
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi
I have one file which is having data like
10201 10202 10205 10206 10207 10208 10209 10210 10211 10213 10215
10801 10802
11406 11415 11422 11426
11513 11514 11515 11516 11517 11518 11519 11520 11521 11522 11523 11524 11525 11530
11604 11608 11611
11717 11718 11719 11722 11725... (3 Replies)
Discussion started by: reldb
3 Replies
2. UNIX for Dummies Questions & Answers
hi
im completely new at unix so dont hate me for asking what is probably the easiest question ever.
below is an extract of some data im processing. the first column is like a counter while the second is an ip address. i need to be able to output the ip address based on which has the largest... (4 Replies)
Discussion started by: Streetrcr
4 Replies
3. Shell Programming and Scripting
Hello Everybody!!!!!!!!! Request you to help me with the below mentioned issue:
I have 2 files say,
File 1:
a|4|7
b|3|2
c|8|8
d|8|9
File 2:
a|4|6
b|2|2
c|8|8
d|9|8
The third file(output file) should have:
Data mismatch in row 1 column 3
Data mismatch in row 2 coumn 2
Data... (3 Replies)
Discussion started by: abhijeet1409
3 Replies
4. Shell Programming and Scripting
Hi
I need to do some thing like "find and insert before that " in a file which contains many records. This will be clear with the following example.
The original data record should be some thing like this
60119827 RTMS_LOCATION_CDR INSTANT_POSITION_QUERY 1236574686123083rtmssrv7 ... (8 Replies)
Discussion started by: aemunathan
8 Replies
5. Shell Programming and Scripting
Suppose we have two files
one file
FAAA_HUMAN.input1
2
5
7
11
and another file
FAAA_HUMAN.output
M*0.0540*0.0039*0.2212*0.0082*0.0020*0.0137*0.0028*0.0029*0.2198*0.0104*0.0889*0.0282*0.0049*0.0804*0.1743*0.0215*0.0531*0.0071*0.0007*0.0021*0.7270*2.5000*... (4 Replies)
Discussion started by: cdfd123
4 Replies
6. Emergency UNIX and Linux Support
Sorry if I repost my question in this section, but I'm really in a hurry since I have to finish my work... :(
Dear community,
I have a table with two rows like:
Row1 Row2
======= =======
7,3 text 1
1,3 text 2
1,2,3 blabla
What i need to do is add/copy... (2 Replies)
Discussion started by: Lord Spectre
2 Replies
7. Shell Programming and Scripting
Hi.
How can we print those rows of file2 which are mentioned in file1. first character of file1 is a row number.. for eg
file1
1:abc
3:ghi
6:pqr
file2
a abc
b def
c ghi
d jkl
e mno
f pqr
... (6 Replies)
Discussion started by: Abhiraj Singh
6 Replies
8. Shell Programming and Scripting
Dear All,
I have input :
SEG901 5173 9005 5740
SEG902 5227 5284
SEG903 5284 5346
SEG904 5346 9010
SEG905 5400 5456
SEG906 5456 5511
SEG907 5511 9011
SEG908 5572 9015
SEG909 5622 9020
SEG910 5678 5739
SEG911 5739 5796
SEG912 5796 9025 ... (3 Replies)
Discussion started by: attila
3 Replies
9. UNIX for Dummies Questions & Answers
hi guys, i want help... Reding XML file and print the values into the text file using linux shell script file as per below xml file
<sequence>
<Filename>aldorzum.doc</Filename>
<DivisionCode>US</DivisionCode>
<ContentType>Template</ContentType>
<ProductCode>VIMZIM</ProductCode>
</sequence>... (4 Replies)
Discussion started by: sravanreddy
4 Replies
LEARN ABOUT CENTOS
xcb_randr_list_output_properties_atoms_length
xcb_randr_list_output_properties(3) XCB Requests xcb_randr_list_output_properties(3)
NAME
xcb_randr_list_output_properties -
SYNOPSIS
#include <xcb/randr.h>
Request function
xcb_randr_list_output_properties_cookie_t xcb_randr_list_output_properties(xcb_connection_t *conn, xcb_randr_output_t output);
Reply datastructure
typedef struct xcb_randr_list_output_properties_reply_t {
uint8_t response_type;
uint8_t pad0;
uint16_t sequence;
uint32_t length;
uint16_t num_atoms;
uint8_t pad1[22];
} xcb_randr_list_output_properties_reply_t;
Reply function
xcb_randr_list_output_properties_reply_t *xcb_randr_list_output_properties_reply(xcb_connection_t *conn,
xcb_randr_list_output_properties_cookie_t cookie, xcb_generic_error_t **e);
Reply accessors
xcb_atom_t *xcb_randr_list_output_properties_atoms(const xcb_randr_list_output_properties_request_t *reply);
int xcb_randr_list_output_properties_atoms_length(const xcb_randr_list_output_properties_reply_t *reply);
xcb_generic_iterator_t xcb_randr_list_output_properties_atoms_end(const xcb_randr_list_output_properties_reply_t *reply);
REQUEST ARGUMENTS
conn The XCB connection to X11.
output TODO: NOT YET DOCUMENTED.
REPLY FIELDS
response_type
The type of this reply, in this case XCB_RANDR_LIST_OUTPUT_PROPERTIES. 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).
num_atoms TODO: NOT YET DOCUMENTED.
DESCRIPTION
RETURN VALUE
Returns an xcb_randr_list_output_properties_cookie_t. Errors have to be handled when calling the reply function xcb_randr_list_output_prop-
erties_reply.
If you want to handle errors in the event loop instead, use xcb_randr_list_output_properties_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_list_output_properties(3)