05-28-2009
how to grep the max length word form a file?
Hi
i have a requirement that is
extract the max length word from a file ?
plz reply
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Please someone I need information on how to change a Unix form/document into a microsoft word document in order to be emailed to another company. Please help ASAP. Thankyou :confused: (8 Replies)
Discussion started by: Cheraunm
8 Replies
2. UNIX for Dummies Questions & Answers
Hi Guys,
Could anyone shed some light on the length of a Unix filepath max length pls ?
thanks !
Wilson (3 Replies)
Discussion started by: wilsontan
3 Replies
3. Shell Programming and Scripting
i have a shell script which takes several args. what is the maximum length of string i can give as argument? (6 Replies)
Discussion started by: senthilk615
6 Replies
4. UNIX for Dummies Questions & Answers
Hi all,
I tried to write a shell to read huge file and eliminate max length record which is wrong generated record. But I get an error
remove_sp.sh: line 27: syntax error near unexpected token `else'
remove_sp.sh: line 27: ` else $LINE >> REJFILE'
My shell is here:
#!/bin/sh... (5 Replies)
Discussion started by: mr_bold
5 Replies
5. Shell Programming and Scripting
Hi all,
I have a flat file of 1000 rows. I want to check the length of the 5th column. The one having the longest length , I want to set it as DEFINED PARAMETER.
So later I can check others with that particular number only.
Any ideas ?? (2 Replies)
Discussion started by: ganesh123
2 Replies
6. Programming
Hello,
In shared memory, when using shmget function, first parameter is ket_t key.
I know it is an integer type, but length of it is system dependent. That means may not be have integer's ranges.
What is range of key_t in Linux? Is it different in distros, for example in ubuntu & fedora? (2 Replies)
Discussion started by: pronetin
2 Replies
7. UNIX for Advanced & Expert Users
Hi,
This is my first post to this site. So kindly forgive if I am writing in a wrong section.
My query is that...
I want to modify the max username length size. I guess it is 32/64 on CentOS. Now I want to change it to 128. Is there any way to do that?
Thanks in advance!! :) (4 Replies)
Discussion started by: ajay303
4 Replies
8. UNIX for Dummies Questions & Answers
Hey Any one...
Do u know any way I can modify the max username length in unix? I guess it is 32/64 characters by default. Suppose I want to increase it to 128.
i hav tried /etc/skel
but no use...
How can I do that? (2 Replies)
Discussion started by: MayureshRisbud
2 Replies
9. Shell Programming and Scripting
I have an input file:
class 1 3 5 10.10.10..0/23 hicks jimmy
class 3 10.12.10.0/22 mike
class.019283 10.10.15.10/20 henry
gym.847585 45 192.168.10.0/22 nancy jim steve maya
The output should look like this:
10.10.10..0/23
10.12.10.0/22
10.10.15.10/20
192.168.10.0/22
I have the... (3 Replies)
Discussion started by: e_mikey_2000
3 Replies
10. Shell Programming and Scripting
I have a big file having 100 K lines.
I have to read each line and see at 356 character position whethere there is a word "W" in it. If it is their then don't delete the line otherwise delete it.
There are two lines as one Header and one trailer which should remain same.
Can somebody... (5 Replies)
Discussion started by: mohit kanoongo
5 Replies
LEARN ABOUT CENTOS
xcb_get_pointer_mapping_map
xcb_get_pointer_mapping(3) XCB Requests xcb_get_pointer_mapping(3)
NAME
xcb_get_pointer_mapping -
SYNOPSIS
#include <xcb/xproto.h>
Request function
xcb_get_pointer_mapping_cookie_t xcb_get_pointer_mapping(xcb_connection_t *conn,
Reply datastructure
typedef struct xcb_get_pointer_mapping_reply_t {
uint8_t response_type;
uint8_t map_len;
uint16_t sequence;
uint32_t length;
uint8_t pad0[24];
} xcb_get_pointer_mapping_reply_t;
Reply function
xcb_get_pointer_mapping_reply_t *xcb_get_pointer_mapping_reply(xcb_connection_t *conn, xcb_get_pointer_mapping_cookie_t cookie,
xcb_generic_error_t **e);
Reply accessors
uint8_t *xcb_get_pointer_mapping_map(const xcb_get_pointer_mapping_request_t *reply);
int xcb_get_pointer_mapping_map_length(const xcb_get_pointer_mapping_reply_t *reply);
xcb_generic_iterator_t xcb_get_pointer_mapping_map_end(const xcb_get_pointer_mapping_reply_t *reply);
REQUEST ARGUMENTS
conn The XCB connection to X11.
REPLY FIELDS
response_type
The type of this reply, in this case XCB_GET_POINTER_MAPPING. 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).
map_len TODO: NOT YET DOCUMENTED.
DESCRIPTION
RETURN VALUE
Returns an xcb_get_pointer_mapping_cookie_t. Errors have to be handled when calling the reply function xcb_get_pointer_mapping_reply.
If you want to handle errors in the event loop instead, use xcb_get_pointer_mapping_unchecked. See xcb-requests(3) for details.
ERRORS
This request does never generate any errors.
SEE ALSO
AUTHOR
Generated from xproto.xml. Contact xcb@lists.freedesktop.org for corrections and improvements.
XCB
2014-06-10 xcb_get_pointer_mapping(3)