12-27-2012
How you indicates that the filter need to check the last collumn ?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I need an assistance in file generation using awk, sed or anything...
I have a big file that i need to filter desired parts only. The objective is to select (and print) the report # having the string "apple" on 2 consecutive lines in every report. Please note that the "apple" line has a HEX... (1 Reply)
Discussion started by: apalex
1 Replies
2. Shell Programming and Scripting
I want to filter records in one of my file using AWK command (or anyother command). I am using the below code
awk -F@ '$1=="0003"&&"$2==20100402" print {$0}' $INPUT > $OUTPUT
I want to pass the 0003 and 20100402 values through a variable. How can I do this?
Any help is much... (1 Reply)
Discussion started by: gpaulose
1 Replies
3. Shell Programming and Scripting
Dear all,
I am using awk to filter some data like this:-
awk 'NR==FNR{a;next}($1 in a)' FS=":" filter.dat data.dat >! out.dat where the filter and input data look like this:-
filter.dat...
n_o00j_1900_40_007195350_0:n_o00j_1940_40_007308526... (3 Replies)
Discussion started by: atb299
3 Replies
4. Shell Programming and Scripting
I have file1
3049
3138
4672
22631
45324
112382
121240
125470
130289
186128
193996
194002
202776
228002
253221
273523
284601
284605
641858 (8 Replies)
Discussion started by: biomed
8 Replies
5. Shell Programming and Scripting
Hi,
I would like extract some lines from file csv using awk , below the example:
I have the file test.csv with in content below.
FLUSSO;COD;DATA_LAV;ESITO
ULL;78;17/09/2013;OL
ULL;45;05/09/2013;Apertura
NP;45;13/09/2013;Riallineamento
ULLNP;78;17/09/2013;OL
NPG;14;12/09/2013;AperturaTK... (6 Replies)
Discussion started by: giankan
6 Replies
6. Shell Programming and Scripting
I have a very large tab-delimited, ~2GB file2 that I am trying to filter using $2 of file1. If $2 of file1 is in the range of $2 and $3 in file1 then the entire line of file2 is outputed. If the range match is not found then that line is skipped. The awk below does run but no output results. ... (3 Replies)
Discussion started by: cmccabe
3 Replies
7. Shell Programming and Scripting
In the below awk if I use the attached file as the input, I get no results for TCF4. However, if I just copy that line from the attached file and use that as input I get results for TCF4.
Basically the gene file is a 1 column list that is used to filter $8 of the attached file. When there is a... (9 Replies)
Discussion started by: cmccabe
9 Replies
8. Shell Programming and Scripting
The below awk will filter a list of 30,000 lines in the tab-delimited file. What I am having trouble with is adding a condition to SVTYPE=CNV
that will only print that line if CI= must be >.05 .
The other condition to add is if SVTYPE=Fusion, then in order to print that line
READ_COUNT must... (3 Replies)
Discussion started by: cmccabe
3 Replies
9. Shell Programming and Scripting
I have two files and would need to filter out records based on certain criteria, these column are of variable lengths, but the lengths are uniform throughout all the records of the file. I have shown a sample of three records below. Line 1-9 is the item number "0227546_1" in the case of the first... (15 Replies)
Discussion started by: MIA651
15 Replies
10. Shell Programming and Scripting
I have file and process it and provide clean output.
input file
Device Symmetrix Name : 000A4
Device Symmetrix Name : 000A5
Device Symmetrix Name : 000A6
Device Symmetrix Name : 000A7
Device Symmetrix Name : 000A8
Device Symmetrix Name : 000A9
Device Symmetrix Name ... (10 Replies)
Discussion started by: ranjancom2000
10 Replies
LEARN ABOUT HPUX
evmfilterdestroy
EvmFilterCreate(3) Library Functions Manual EvmFilterCreate(3)
NAME
EvmFilterCreate(), EvmFilterDestroy(), EvmFilterIsFile(), EvmFilterReadFile(), EvmFilterSet(), EvmFilterTest() - event filter evaluator
routines
SYNOPSIS
Library
EVM Support Library
Parameters
filter_evaluator For filter_evaluator is the return handle of an established filter evaluator.
For filter_evaluator , identifies the filter evaluator that uses the filter_string in subsequent matches.
For filter_evaluator identifies the filter evaluator that compares the supplied event with the filter string.
For filter_evaluator identifies the filter evaluator to be destroyed.
filter_string The filter string used by the filter evaluator in subsequent matches. See the EvmFilter(5) manpage for the syntax.
event The event to be compared with the filter string currently associated with the filter evaluator.
matchFlag The result obtained when the supplied event is compared with the filter string currently associated with the filter evalu-
ator. Possible return values are as follows:
The event matches the
filter_string.
The event does not match the
filter_string.
DESCRIPTION
The filter evaluation routines check whether an event matches a given event filter. These functions are useful to clients that pass a com-
plex filter to the EVM daemon. Then the clients test incoming events against subcomponents of the filter to determine the appropriate
action.
The routine establishes an instance of a filter evaluator, returning a handle in filter_evaluator.
The routine passes a filter_string to the filter_evaluator for subsequent matches.
The routine compares the supplied event with the filter_string currently associated with the filter_evaluator. The result is returned in
matchFlag. Possible return values are as follows:
The event matches the
filter_string.
The event does not match the
filter_string.
The indirect filter syntax, is supported by the and routines. Programs which support indirect filters may use to determine whether a user-
supplied filter string is indirect. If so, then use to expand the file to a regular filter string.
returns if the supplied filter_string uses indirect filter notation, and returns otherwise.
interprets the supplied filter_string, and attempts to open and read the referenced file. returns a pointer to heap space memory contain-
ing the expanded filter string. The caller is responsible for freeing the memory when it is no longer needed. NULL is returned if an
error occurs while reading the file. Note that does not attempt to validate the filter string contained in the file.
The routine destroys the filter_evaluator, freeing all associated resources.
RETURN VALUE
The operation completed without error.
A filter string that is syntactically invalid passed to the filter evaluator.
One of the arguments to the function is invalid.
A value in a structure member is invalid.
An operation failed because an attempt to acquire heap memory failed.
An attempt was made to use a filter evaluator without first calling
which provides an initial filter string.
An attempt to read a filter file failed.
ERRORS
The value of is not set.
SEE ALSO
Event Management
EVM(5).
EVM Events
EvmEvent(5).
Event Filter
EvmFilter(5).
EvmFilterCreate(3)