Hello,
I have a header which I have to add to a sorted file, however if I use
cat header sortedfile > newfile, the operation takes 2 minutes as the sorted file is over 400mb.
I have noticed that when I sort the 400mb unsorted file, this only takes 14 seconds to create the output.
As... (2 Replies)
So, I have a file that has some duplicate lines. The file has a header line that I would like to keep at the top.
I could do this by extracting the header from the file, 'sort -u' the remaining lines, and recombine them. But they are quite big, so if there is a way to do it with a single... (1 Reply)
I am having report file with header and footer . The details in between header and footer are separated by a pipe charater. I want to sort the file by considering multiple columns in between header and footer.
pls help (4 Replies)
Dear All,
I would like to find an automatic way to add a given code which belong to a class at the end of the column , for example this is my input file:
0610009O20Rik
V$VMYB_01 310 (+) 1 0.971 v-Myb
V$EVI1_04 782 (-) 0.763 0.834 Evi-1
V$ELK1_02 1966 (-) 1 0.984 Elk-1... (4 Replies)
Hi,
I'm trying to sort 2 different .txt tab delimited files with the command line:
sort -k 1b,1 inputfile > outputfile
But doing that i'm also sorting the header (that ends at the end of my file).
How can i sort a .txt file without sorting the header but conserving the header in the... (3 Replies)
Hello!
I have a tab delimited file with values in three columns. Some values occur in all three columns, other values are present in only one or two columns. I would like to sort the file so that rows with no missing values come first, rows with one missing values come next, and rows with two... (9 Replies)
I have several las files with a header and each file start Version and text and before the data starts end up with ~Ascii, then the numbers starts:
-------------------------------------------------------------------------
Code:
~Version
.....text....
~Ascii
2 abc 230 1 name
1 abc ... (1 Reply)
I have several las files with a header and each file start Version and text and before the data starts end up with ~Ascii, then the numbers starts:
-------------------------------------------------------------------------
~Version
.....text....
~Ascii
2 abc 230 1 name
1 abc 400 1... (17 Replies)
Hi,
I am using SUN SOLARIS (SunOS sun4v sparc SUNW, T5240).
I have a huge data file with header and trailer. This file gets used into an ETL process. ETL skips the header record (which is the first record of the file) and loads the rest of the record. The file can be delimited (comma,... (5 Replies)
Discussion started by: Saanvi1
5 Replies
LEARN ABOUT HPUX
xtapppeekevent
XtAppPeekEvent() XtAppPeekEvent()
Name
XtAppPeekEvent - return, but do not remove the event at the head of an application's input queue; block if no events are available.
Synopsis
Boolean XtAppPeekEvent(app_context, event_return)
XtAppContext app_context;
XEvent *event_return;
Inputs
app_context
Specifies the application context.
Outputs
event_return
Returns the event from the head of the queue, if that event is an X event.
Returns
True if the event at the head of the queue is an X event; False if it is a timer event or an alternate input source event.
Description
If there are X events pending on any of the displays in app_context, XtAppPeekEvent() copies the event from the head of the application
event queue into event_return (without removing the event from the queue) and returns True. If there are no events, it flushes the output
buffers of each display and checks again. If there are still no pending X events on any of the displays, but there are timer or alternate
input events ready, XtAppPeekEvent() returns False.
If there are no events of any kind, XtAppPeekEvent() blocks until one occurs, and then if it is an X event, copies the event (without
removing it from the queue) and returns True or returns False otherwise. Note that XtAppPeekEvent() never calls background work procedures
registered with XtAppAddWorkProc() .
Usage
Programs rarely need this much control over the event dispatching mechanism. Most programs use XtAppMainLoop().
If you want to get X events and remove them from the input queue, consider XtAppNextEvent(). This function also dispatches timer and
alternate input events.
If you want to check for input events without blocking, use XtAppPending(). This function returns a value that indicates which types of
events are pending for an application context, or 0 if no events are pending.
See AlsoXtAppMainLoop(1), XtAppNextEvent(1), XtAppPending(1).
Xt - Event Handling XtAppPeekEvent()