Hi have Input in this way
KEY AAAA
BBBB
END1
KEY AAAA
BBBB
END2
KEY AAAA
BBBB
END3
I need to find any thing matching in between KEY And ending with "END1|END2|END3"
This didnot work
awk '/KEY/,/END1|END2|END3/' (3 Replies)
Hi,
i have a file a.txt like
--------------------------------
col1|col2|col3
data1|data2|data3
other1|other2|other3
--------------------------------
i need to search 2 strings(data in a.txt file is case sesnsitive), suppose data1 and data2. If these 2 strings found then only i need... (2 Replies)
Guys any pointers on how to search between 2 sets date strings with time in the below file example :-
02-Feb-2010 23:12:09 GMT event_type::event_details_are_like_this
02-Feb-2010 09:10:29 GMT event_type::event_details_are_like_this
03-Feb-2010 11:12:19 GMT... (3 Replies)
I have a file called po.txt. Here is the content of the file:
<!DOCTYPE PurchaseOrderMessage (View Source for full doctype...)>
- <PurchaseOrder>
- <Header>
<MessageId>cdb3062b-685b-4cd5-9633-013186750e10</MessageId>
<Timestamp>2011-08-01T13:47:23.536-04:00</Timestamp>
</Header>
-... (4 Replies)
Hi,
I have a file filled with search strings which have a blank in between and look like this:
S. g. Ehr.
o. Jg.
v. d. Chijs
g. Ehr.
Now i would like to search for the strings and it also shall return the next column after the match.
awk -v FILE="search_strings.txt" 'BEGIN {... (10 Replies)
Hi ,
I have been trying to write a perl script to do this job. But i am not able to achieve the desired result. Below is my code.
my $current_value=12345;
my @users=("bob","ben","tom","harry");
open DBLIST,"<","/var/tmp/DBinfo";
my @input = <DBLIST>;
foreach (@users)
{
my... (11 Replies)
I'm trying to find a way to search a range of similar words in a file. I tried using sed but can't get it right:sed 's/\(ca01\)*//'It only removes "ca01" but leaves the rest of the word. I still want the rest of the information on the lines just not these specific words listed below. Any... (3 Replies)
Hi guys,
I have a text file named file1.txt that is formatted like this:
001 , ID , 20000
002 , Name , Brandon
003 , Phone_Number , 616-234-1999
004 , SSNumber , 234-23-234
005 , Model , Toyota
007 , Engine ,V8
008 , GPS , OFF
and I have file2.txt formatted like this:
... (2 Replies)
Hi All,
I hope somebody would be able to help me.
I would need to search a string coming from a file, example file.txt:
dog
cat
goat
horse
fish
For every string, I would need to know if there are any files inside a directory(recursively) that contains the string regardless of case.... (9 Replies)
Hi,
I am Searching for Multiple strings in a given date range and print the Group if they exists. the below is the format:
-------------------------------------------------------------------------------------------------------------------------
ID: FIRST ID
MESSAGE: Event Message... (5 Replies)
Discussion started by: linuxuser999
5 Replies
LEARN ABOUT SUSE
cpanplus::internals::search
CPANPLUS::Internals::Search(3pm) Perl Programmers Reference Guide CPANPLUS::Internals::Search(3pm)NAME
CPANPLUS::Internals::Search
SYNOPSIS
my $aref = $cpan->_search_module_tree(
type => 'package',
allow => [qr/DBI/],
);
my $aref = $cpan->_search_author_tree(
type => 'cpanid',
data => @old_results,
verbose => 1,
allow => [qw|KANE AUTRIJUS|],
);
my $aref = $cpan->_all_installed( );
DESCRIPTION
The functions in this module are designed to find module(objects) based on certain criteria and return them.
METHODS
_search_module_tree( type => TYPE, allow => @regexes, [data => @previous_results ] )
Searches the moduletree for module objects matching the criteria you specify. Returns an array ref of module objects on success, and false
on failure.
It takes the following arguments:
type
This can be any of the accessors for the "CPANPLUS::Module" objects. This is a required argument.
allow
A set of rules, or more precisely, a list of regexes (via "qr//" or plain strings), that the "type" must adhere too. You can specify as
many as you like, and it will be treated as an "OR" search. For an "AND" search, see the "data" argument.
This is a required argument.
data
An arrayref of previous search results. This is the way to do an "AND" search -- "_search_module_tree" will only search the module
objects specified in "data" if provided, rather than the moduletree itself.
_search_author_tree( type => TYPE, allow => @regexex, [data => @previous_results ] )
Searches the authortree for author objects matching the criteria you specify. Returns an array ref of author objects on success, and false
on failure.
It takes the following arguments:
type
This can be any of the accessors for the "CPANPLUS::Module::Author" objects. This is a required argument.
allow
A set of rules, or more precisely, a list of regexes (via "qr//" or plain strings), that the "type" must adhere too. You can specify as
many as you like, and it will be treated as an "OR" search. For an "AND" search, see the "data" argument.
This is a required argument.
data
An arrayref of previous search results. This is the way to do an "and" search -- "_search_author_tree" will only search the author
objects specified in "data" if provided, rather than the authortree itself.
_all_installed()
This function returns an array ref of module objects of modules that are installed on this system.
perl v5.12.1 2010-04-26 CPANPLUS::Internals::Search(3pm)