File::Searcher

Description

File::Searcher is a searches for files and performs search/replacements on matching files. SYNOPSIS use File::Searcher; my $search = File::Searcher->new(*.cgi); $search->add_expression(name=>street, search=>1234 Easy St., replace=>456 Hard Way, options=>i); $search->add_expression(name=>department, search=>(Dept.|Department)(s+)(d+), replace=>$1$2$3, options=>im); $search->add_expression(name=>place, search=>Portland, OR(.*?)97212, replace=>Vicksburg, MI${1}49097, options=>is); $search->start; # $search->interactive; SEE File::Searcher::Interactive @files_matched = $search->files_matched; print "Files Matchedn"; print "t" . join("nt", @files_matched) . "n"; print "Total Files:t" . $search->file_cnt . "n"; print "Directories:t" . $search->dir_cnt . "n"; my @files_replaced = $search->expression(street)->files_replaced; my @files_replaced = $search->expression($expression)->files_replaced; my %matches = $search->expression(street)->matches; my %replacements = $search->expression(street)->replacements; File::Searcher allows for the traversing of a directory tree for files matching a Perl regular expression. When a match is found, the statistics are stored and if the file is a text file a series of searches and replacements can be performed. File::Searcher has options that allow for backing-up / archiving files and has OO access to reporting and statistics of matches and replacements..

Filesearcher - Files - Expression - Searches - Matching - Replacements - Search - Libraries - Programming

Published By:Adam Stubbs

License Type:Freeware

Date Added:22 October, 2010

Version:0.91

Price:Free

Downloads:42

Size:9.2 KB

Platform: Linux

What people say
- required fields
     
Related Downloads

Rconfig is intended to manage configuration files across heterogenous groups of machines. The configuration for each machine is determined by a set of rdist trees based on the various tags such as OS, hostname, and architecture.

DateAug 1, 2010

Authorabs0

Size0

LicenseFreeware

PriceFree

PlatformLinux

CategoryLinux Utilities

Games::SGF::Tournament is a Perl module for tournament statistics generator.

DateOct 6, 2010

AuthorAl Nikolov

Size12.3 KB

LicenseFreeware

PriceFree

PlatformLinux

CategoryLinux Programming

Dalle aims to build a set of utilities to work with split files in various formats. Supported formats by Dalle are hacha (1, 2, and pro), kamaleon (1 and 2), FileSplit, and SplitFile..

DateAug 20, 2010

AuthorAlberto Fernandez

Size69.6 KB

LicenseFreeware

PriceFree

PlatformLinux

CategoryLinux Utilities

fileschanged is a GNU/Linux command-line utility that reports when files have been altered. This software is a client to the FAM (File Alteration Monitor) server that is now available in some distributions.

DateOct 6, 2010

Authorbenasselstine

Size29.7 KB

LicenseFreeware

PriceFree

PlatformLinux

CategoryLinux Utilities

myPod is implemented in Java, so its platform independent and should run at most platforms where you can get your iPod mounted.

DateOct 3, 2010

AuthorAxel Wernicke

Size1.6 MB

LicenseFreeware

PriceFree

PlatformLinux

CategoryLinux Audio