Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

odffilesearch(1p) [debian man page]

ODFFILESEARCH(1p)					User Contributed Perl Documentation					 ODFFILESEARCH(1p)

NAME
odffilesearch - File selection by keywords SYNOPSIS
odffilesearch -R "D:Documents*.odt" openoffice desktop XML produces the list of the ODF Text documents present in the given directory and its subdirectories, and containing the words "openoffice", "desktop" AND "XML" odffilesearch -command "rm -f %f" "*.ods *.odt" lost dismiss cancel executes the "rm -f filename" (i.e. deletes the file in a Unix system) for each ODT or ODS file present in the current directory and containing the words "lost", "dismiss" AND "cancel" USAGE
odffilesearch [-options] <file filter> <keyword list> DESCRIPTION
This utility allows the user to retrieve a list of files matching a given set of keywords or regular expressions. A file is selected when it contains, in its text and/or in its metadata (title, subject, keywords or description), all the given search strings. The selected files are echoed to the standard output (one file per line), so this utility can be used as a filter piping its results to another program. Alternatively, a given shell command can be launched by the script each time a file matches, allowing on-the-fly processing of the selected documents. The files filter may content one or more space-separated paths. Each path may content jokers. So it's possible to explore several directories and/or several filename patterns. All the arguments after the file filter are processed as search criteria. OPTIONS
-R -recursive include the subdirectories of each given search directory -verbose -trace -debug echo some processing comments -warnings activate the warning messages of the OpenOffice::OODoc API -log <file> like -verbose, but then messages are sent to the given file and don't pollute the standard output -result <file> -output <file> send the list of matching files to the given file and not to the standard output -criteria <file> get search criteria from a file (one per line); the loaded search keywords may be combined with additional criteria passed with the command line, if any. -command <command> -exec <command> execute a shell command for each matching file ; if the command string contains "%f", this substring is replaced with the name of the selected file ; if this option is provided, the selection list is not echoed to the standard output ; if -verbose is on, the value returned by the command is echoed -encoding <encoding> selects the user's character set ; this option is mandatory if one or more search criteria contain characters not belonging to the default character set perl v5.14.2 2008-05-04 ODFFILESEARCH(1p)

Check Out this Related Man Page

CPANPLUS::Internals::Search(3)				User Contributed Perl Documentation			    CPANPLUS::Internals::Search(3)

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.16.3 2013-05-20 CPANPLUS::Internals::Search(3)
Man Page