03-25-2010
thanks for quick reply. can I get awk to neglect the value portion of the string(everything after the =)? only focus on variable to the left of the "=" ?
8 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
I was hoping someone ould help me with the following.
I have 2 files in a directory FILEA and FILEB. i am running a process on these 2 files but before the process can run both FILEA and FILEB need to be present.
If one or both the files are missing i need to know what file(s) is(are)... (10 Replies)
Discussion started by: SAMZ
10 Replies
2. Shell Programming and Scripting
So, I've got a ton of files that I want to go through (ie something like 300,000), and they're all labeled sequentially. However I'm not 100% positive that they are all there.
Is there any way of running through a sequence of numbers, checking if the file is in the folder, if not appending it... (2 Replies)
Discussion started by: Julolidine
2 Replies
3. Shell Programming and Scripting
OS=HP-UX ksh
The following works, except I want to include the <start> and <end> in the output.
awk -F '<start>' 'BEGIN{RS="<end>"; OFS="\n"; ORS=""} {print $2} somefile.log'
The following work in bash but not in ksh
sed -n '/^<start>/,/^<end>/{/LABEL$/!p}' somefile.log (4 Replies)
Discussion started by: Ikon
4 Replies
4. Shell Programming and Scripting
Hello
I am new to Perl, in fact I am on chapter one of the book. :) However I am in need of a Perl Script faster than I can finish the book. Perhaps someone can help me with my immediate need while I read my book.
I have a directory with hundreds of files that are all named like... (4 Replies)
Discussion started by: newftronics
4 Replies
5. Shell Programming and Scripting
I have a list containing strings. All strings should have either "smp" or "drw" else it is considered an error. I have written this code below. Any better ideas to tackle this?
set fdrw = 0
set fsmp = 0
foreach f ($Lst)
set fdrwtag = `echo $f | awk '/drw/'`
set fsmptag = `echo $f | awk... (1 Reply)
Discussion started by: kristinu
1 Replies
6. Programming
I have some vectors to evaluate and develop a list of values that occur in more than one element.
This is the simplest case. I have a vector,
std::vector<int> vec1;
vec1=5; vec1=5;
I need to know that that 5 occurs twice in the vector. If I do a double loop,
std::vector<int>... (13 Replies)
Discussion started by: LMHmedchem
13 Replies
7. AIX
I'm in the process of migrating a system to some newer hardware (Power 5 to Power 7). I've done these migrations in the past, and have not had any problems. But this system does not see the new network controllers on the Power 7 system. The system was running AIX 5.3 before, I've upgraded it to... (5 Replies)
Discussion started by: acascianelli
5 Replies
8. Shell Programming and Scripting
I have a fixed width file. The records looks something similar to below:
Type ID SSN NAME .....AND SOME MORE FIELDS
A1 1234 .....
A1 1234 .....
B1 1234 .....
M2 4567 .....
M2 4567 .....
N2 4567 .....
N2 4567 .....
A1 9999
N2 9999
Now if A1 is present then B1 has to be present.... (2 Replies)
Discussion started by: Saanvi1
2 Replies
LEARN ABOUT CENTOS
xcb_get_input_focus
xcb_get_input_focus(3) XCB Requests xcb_get_input_focus(3)
NAME
xcb_get_input_focus -
SYNOPSIS
#include <xcb/xproto.h>
Request function
xcb_get_input_focus_cookie_t xcb_get_input_focus(xcb_connection_t *conn,
Reply datastructure
typedef struct xcb_get_input_focus_reply_t {
uint8_t response_type;
uint8_t revert_to;
uint16_t sequence;
uint32_t length;
xcb_window_t focus;
} xcb_get_input_focus_reply_t;
Reply function
xcb_get_input_focus_reply_t *xcb_get_input_focus_reply(xcb_connection_t *conn, xcb_get_input_focus_cookie_t cookie,
xcb_generic_error_t **e);
REQUEST ARGUMENTS
conn The XCB connection to X11.
REPLY FIELDS
response_type
The type of this reply, in this case XCB_GET_INPUT_FOCUS. 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).
revert_to One of the following values:
XCB_INPUT_FOCUS_NONE
The focus reverts to XCB_NONE, so no window will have the input focus.
XCB_INPUT_FOCUS_POINTER_ROOT
The focus reverts to XCB_POINTER_ROOT respectively. When the focus reverts, FocusIn and FocusOut events are generated,
but the last-focus-change time is not changed.
XCB_INPUT_FOCUS_PARENT
The focus reverts to the parent (or closest viewable ancestor) and the new revert_to value is XCB_INPUT_FOCUS_NONE.
XCB_INPUT_FOCUS_FOLLOW_KEYBOARD
NOT YET DOCUMENTED. Only relevant for the xinput extension.
TODO: NOT YET DOCUMENTED.
focus TODO: NOT YET DOCUMENTED.
DESCRIPTION
RETURN VALUE
Returns an xcb_get_input_focus_cookie_t. Errors have to be handled when calling the reply function xcb_get_input_focus_reply.
If you want to handle errors in the event loop instead, use xcb_get_input_focus_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_input_focus(3)