hi, I have a file.....
1|3|4|5|6
1|3|4|4|5
now i ahave to search for value 4 in forth field and write that output to a file.
if i do grep 4 file1 both lines are coming to output.
can somebody help me building command.
thanks and regards
sandeep (4 Replies)
I would like to do the following in bash shell.
file a
a:1
b:2
c:3
file b
a:work:apple
b:baby:banana
c:candy:cat
d:desk:dog
I would like to match field 1 in file a to file b, if there's a match I would like
to append field 2 in file a to field 3 in file b.
Thank you. (8 Replies)
Hi All,
Thanks for your help in advance
I am parsing a log file where the first field of each line can have the same key value but not more than 3 times in a row. Varying value of that first field changes as you go through the log but it either appears 3 times or two and sometimes only once.... (1 Reply)
hi,
awk -F ";" '{if($10>500) then i++; } END{print i}' event_file_FR12_202_24-11-2009_* | less
How to modify and add to this above to print the complete line in less
ex :
4712714002021527;15298888;241129 095614... (1 Reply)
First, thanks for the help in previous posts... couldn't have gotten where I am now without it!
So here is what I have, I use AWK to match $1 and $2 as 1 string in file1 to $1 and $2 as 1 string in file2. Now I'm wondering if I can extend this AWK command to incorporate the following:
If $1... (4 Replies)
Hello,
I was hoping someone could help me with this work related problem...
basically what I want to do is the following:
file2:
1 o
2 t
4 f
5 v
7 n
8 e
10 a
file1:
1 : (8 Replies)
Hi Team,
I have two strings like:
xxx|yyy|Arizona Cardinals| Tell Cardinals | Cardinals
bbb|Bell Earn, Jr | Bell Earn | Jayhawks | hawks
I have a lookup file which has a set of strings. These need to be removed from above two strings
Lookup file Contents:
Bell Earn, Jr
hawks... (2 Replies)
I am trying to look for $2 of file1 (skipping the header) in $2 of file2 (skipping the header) and if they match and the value in $10 is > 30 and $11 is > 49, then print the line from file1 to a output file. If no match is foung the line is not printed. Both the input and output are tab-delimited.... (3 Replies)
Discussion started by: cmccabe
3 Replies
LEARN ABOUT DEBIAN
plucene::search::termquery
Plucene::Search::TermQuery(3pm) User Contributed Perl Documentation Plucene::Search::TermQuery(3pm)NAME
Plucene::Search::TermQuery - a query that contains a term
SYNOPSIS
# isa Plucene::Search::Query
$term_query->normalize($norm);
my $ssw = $term_query->sum_squared_weights($searcher);
my $as_string = $term_query->as_string($field);
DESCRIPTION
A query that matches a document containing a term.
Term query are the simplest possible Plucene queries and are used to match a single word. Term queries are represented by instances of the
TermQuery class and contain the desired term (word) and a field name, both are case sensitive.
The field specified in a Term query must be a document field that was specified as 'indexible' during the indexing process. If the field
was specified during indexing as 'tokenized' than the term will be matched against each of tokens (words) found in that field, otherwise,
it will be matched against the entire content of that field.
A term query may have an optional boost factor (default = 1.0) that allows to increase or decrease the ranking of documents it matches.
METHODS
term / idf / weight
Get / set these attributes
sum_squared_weights
my $ssw = $term_query->sum_squared_weights($searcher);
This will return the sum squared weights for the passed in searcher.
normalize
$term_query->normalize($norm);
to_string
my $as_string = $term_query->as_string($field);
perl v5.12.4 2011-08-14 Plucene::Search::TermQuery(3pm)