Hi,
I have two files file1 and file2 delimited by semicolon,
And I want to compare column 2 and column3 of file1 to column3 and column 4 in file2.
file1
--------
abc;cef;155.67;143_34;
def;fgh;146.55;123.3;
frg;hff;134.67;;
yyy;fgh;134.78;35_45;
file 2
---------
abc;cef;155.09;;... (12 Replies)
Kindly help on follows.
I have 2 files. One file contains only one column of mobile numbers. And total records in a file 12 million. Second file contains 2 columns mobile numbers and balance. and total records 30 million. I want to find out balance of each data in file 1 corresponding to file 2.... (2 Replies)
Dear All,
I want to compare two csv files using shell programming -
File 1 contents
44,,NONE,0,,2/2/1901
66,,NONE,0,,2/3/1901
File 2 Contents
1022,3708268,AUFX,0,100919,3/1/2006
66,,NONE,0,,2/3/1901
After comparing each column/field I want to print the occurances of... (5 Replies)
I have an input file. Each line in it has several characters. If the first three characters of the line is '000' or '001' or '002' or '003', I need to print it in output. How can I do this in awk.
I am able to do if the search string is only one (let us say 000).
cat <filename> | awk... (1 Reply)
Hi,
I have a problem with comparison of two files
file1
20100101
20090101
20080101
20071001
20121229
file2
19990112 12 456 7
20011131 19
20100101 2 567 1 987
17890709 123 555
and, sh script needs to compare of these two files and give out to me result:
20100101 2 567 1 987
it... (5 Replies)
Hi all
I have two files which I have to compare that whetehr there is soemthing common or not
body, div, table, thead, tbody, tfoot, tr, th, td, p { font-family: "Liberation Sans"; font-size: x-small; }
body, div, table, thead, tbody, tfoot,... (2 Replies)
Hello to all in forum,
May you experts could help me with this complex comparison please.
I need to search the numbers in file1 within column3 of file2 and if found, compare column4 to NF
of file2 with the lines in file3. If the column4 to NF in file2 match any of the lines
in file3,... (5 Replies)
I have the requirement
I have two files
cat fileA
something
anythg
nothing
everythg
cat fileB
everythg
anythg
Now i shld use fileB and compare every line at fileA and get the output as
something
nothing (3 Replies)
Hi,
I have 2 files, I need to use column of file1 and do a comparison on file2 column 1 and print the mismatch is file3 as mentioned below.
Kindly consider that file 1 is having uniq key(column) whereas in file2 we have multiple duplicates (like 44). These duplicates should not come in... (2 Replies)
Discussion started by: grv
2 Replies
LEARN ABOUT LINUX
posix_trace_clear
POSIX_TRACE_CLEAR(P) POSIX Programmer's Manual POSIX_TRACE_CLEAR(P)
NAME
posix_trace_clear - clear trace stream and trace log (TRACING)
SYNOPSIS
#include <sys/types.h>
#include <trace.h>
int posix_trace_clear(trace_id_t trid);
DESCRIPTION
The posix_trace_clear() function shall reinitialize the trace stream identified by the argument trid as if it were returning from the
posix_trace_create() function, except that the same allocated resources shall be reused, the mapping of trace event type identifiers to
trace event names shall be unchanged, and the trace stream status shall remain unchanged (that is, if it was running, it remains running
and if it was suspended, it remains suspended).
All trace events in the trace stream recorded before the call to posix_trace_clear() shall be lost. The posix_stream_full_status status
shall be set to POSIX_TRACE_NOT_FULL. There is no guarantee that all trace events that occurred during the posix_trace_clear() call are
recorded; the behavior with respect to trace points that may occur during this call is unspecified.
If the Trace Log option is supported and the trace stream has been created with a log, the posix_trace_clear() function shall reinitialize
the trace stream with the same behavior as if the trace stream was created without the log, plus it shall reinitialize the trace log asso-
ciated with the trace stream identified by the argument trid as if it were returning from the posix_trace_create_withlog() function, except
that the same allocated resources, for the trace log, may be reused and the associated trace stream status remains unchanged. The first
trace event recorded in the trace log after the call to posix_trace_clear() shall be the same as the first trace event recorded in the
active trace stream after the call to posix_trace_clear(). The posix_log_full_status status shall be set to POSIX_TRACE_NOT_FULL. There is
no guarantee that all trace events that occurred during the posix_trace_clear() call are recorded in the trace log; the behavior with
respect to trace points that may occur during this call is unspecified. If the log full policy is POSIX_TRACE_APPEND, the effect of a call
to this function is unspecified for the trace log associated with the trace stream identified by the trid argument.
RETURN VALUE
Upon successful completion, the posix_trace_clear() function shall return a value of zero. Otherwise, it shall return the corresponding
error number.
ERRORS
The posix_trace_clear() function shall fail if:
EINVAL The value of the trid argument does not correspond to an active trace stream.
The following sections are informative.
EXAMPLES
None.
APPLICATION USAGE
None.
RATIONALE
None.
FUTURE DIRECTIONS
None.
SEE ALSO
posix_trace_attr_init() , posix_trace_create() , posix_trace_flush() , posix_trace_get_attr() , the Base Definitions volume of
IEEE Std 1003.1-2001, <sys/types.h>, <trace.h>
COPYRIGHT
Portions of this text are reprinted and reproduced in electronic form from IEEE Std 1003.1, 2003 Edition, Standard for Information Technol-
ogy -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of
Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between this version and the original IEEE
and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained
online at http://www.opengroup.org/unix/online.html .
IEEE /The Open Group 2003 POSIX_TRACE_CLEAR(P)