Hi experts,
I have the file with these lines:
var1=thu_13:12:32,var2=Microsoft,var3=240ms,var4=Mozilla/4.0_(sun;_MSIR_3-4;_windows.;_NET_1.1323.53
var1=thu_13:13:32,var2=Microsoft,var3=213ms,var4=Mozilla/4.0_(sun;_MSIR_3-4;_windows.;_NET_1.1323.53... (9 Replies)
Hi All,
I want to search all the ksh scripts that has following details.
1. Search for "exit 0"
2. Search for "sqlldr" or sqlplus"
3. In the above files i want to search for all the script that has no "case" in it.
Please advice.
Thanks,
Deep (2 Replies)
Hi,
I have following problem. I have a file with time stamps and some data describing what happened between time stamps. Something like this:
10:00
meeting with K
meeting with L
11:00
lunch
12:00
work with K
13:00
From this file I have to get a file with... (7 Replies)
I need to extract the last block of /== START OF SQLPLUS ==/ and /== END OF SQLPLUS ==/. The logifle is written to several times in a day using >> to append. I need a solution using grep/sed.
logfile looks like this
START OF LOGFILE
/== START OF SQLPLUS ==/
ERROR
/== END OF SQLPLUS... (5 Replies)
Hi All,
I'm trying to extract all the description fields from a MIB file which contain multiple instances of the following text:
ENTERPRISE compaq
VARIABLES { sysName, cpqHoTrapFlags, cpqSsBoxCntlrHwLocation,
cpqSsBoxCntlrIndex, cpqSsBoxBusIndex,... (10 Replies)
I have a text file for which i need a script which does some fancy search and replace.
Basically i want to loop through each line, if i find an occurance of certain string format then i want to carry on search on replace another line, once i replaced this line i will contine to search for the... (7 Replies)
Hi
I want to search multiple strings in a file . But the search should start with "From" Keyword and end with before "Where" keyword.
Please suggest me.
Thanks (2 Replies)
Well, to make another post at this helpful forum :b::D:
I recently tried something like this, I want to replace all those numberings/letters that are located
between <string>file://localhost/var/mobile/Applications/ and /Documents/</string>
numberings =----
replace with:
first... (6 Replies)
I have a file search_strings.txt filled with search strings which have a blank in between and look like this:
S. g. Erh.
o. J.
v. d. Chijs
g. Ehr.I would like to search the strings in the second given Textfile.txt and it shall return the column number.
Can anybody help with the correct... (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)
Discussion started by: An0mander
2 Replies
LEARN ABOUT MOJAVE
cpanplus::internals::search5.18
CPANPLUS::Internals::Search(3pm) Perl Programmers Reference Guide CPANPLUS::Internals::Search(3pm)NAME
CPANPLUS::Internals::Search - internals for searching for modules
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.18.2 2014-01-06 CPANPLUS::Internals::Search(3pm)