6 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi Friends,
I am in search of unix command which can search a particular pattern in all files which are created/modified today ONLY. Which is the best way to achieve this?
Thanks in advance. (1 Reply)
Discussion started by: Nakul_sh
1 Replies
2. Shell Programming and Scripting
If I am searching for AA then then BB in a loop, how do I make the output always contain 6 columns of comma separated data even when there may only be 4 search matches?
AA11
AA12
AA13
AA14
BB11
BB12
BB13
BB14
BB15
BB16
Final output:
AA11,AA12,AA13,AA14,,,... (14 Replies)
Discussion started by: jojojmac5
14 Replies
3. Shell Programming and Scripting
I am using GAWK to search for a specific pattern:
gawk '{IGNORECASE=1;} /<a href=/&&/\$/,/<\/a/' index.html
<a class=author href="http://washingtondc.craigslist.org/search/?areaID=10&amp;catAbb=sss&amp;query=ps vita" title="craigslist washington, DC | all fo
r sale / wanted search "ps... (1 Reply)
Discussion started by: metallica1973
1 Replies
4. Shell Programming and Scripting
Hello ,
When using vim, can ctag and cscope support recording search results and displaying the history results ? Once I jump to one tag, I can use :tnext to jump to next tag, but how can I display the preview search result? (0 Replies)
Discussion started by: 915086731
0 Replies
5. Shell Programming and Scripting
Hi all,
I'm new to awk and I'm experiencing syntax error that I don't know how to resolve. Hopefully some experts in this forum can help me out.
I created an awk file that look like this:
$ cat myawk.awk
BEGIN {
VAR1=PATTERN1
VAR2=PATTERN2
}
/VAR1/ { flag=1 }
/VAR2/ { flag=0 }
{... (7 Replies)
Discussion started by: hk18
7 Replies
6. Shell Programming and Scripting
Hi, I am a newbie at Unix scritping, and I have a question.
Looking at the search functionality on Unix. Here I have a structure
root---------dir1 ------- file1, file2, file3
|_____dir2 ______file1@, file4
|_____dir3_______file1@, file5
Under root directory, I... (4 Replies)
Discussion started by: nj302
4 Replies
KinoSearch1::Search::MultiSearcher(3pm) User Contributed Perl Documentation KinoSearch1::Search::MultiSearcher(3pm)
Dummy class, only here to support initialization of Weights from Queries.
NAME
KinoSearch1::Search::MultiSearcher - Aggregate results from multiple searchers.
SYNOPSIS
for my $server_name (@server_names) {
push @searchers, KinoSearch1::Search::SearchClient->new(
peer_address => "$server_name:$port",
analyzer => $analyzer,
password => $pass,
);
}
my $multi_searcher = KinoSearch1::Search::MultiSearcher->new(
searchables => @searchers,
analyzer => $analyzer,
);
my $hits = $multi_searcher->search( query => $query );
DESCRIPTION
Aside from the arguments to its constructor, MultiSearcher looks and acts just like a KinoSearch1::Searcher object.
The primary use for MultiSearcher is to aggregate results from several remote searchers via SearchClient, diffusing the cost of searching a
large corpus over multiple machines.
METHODS
new
Constructor. Takes two hash-style parameters, both of which are required.
o analyzer - an item which subclasses KinoSearch1::Analysis::Analyzer.
o searchables - a reference to an array of searchers.
COPYRIGHT
Copyright 2006-2010 Marvin Humphrey
LICENSE, DISCLAIMER, BUGS, etc.
See KinoSearch1 version 1.00.
perl v5.14.2 2011-11-15 KinoSearch1::Search::MultiSearcher(3pm)