File::Searcher v.0.91

Advertisement
Advertisement

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.

File::Searcher is a searches for files and ...

 
  • File::Searcher
  • 0.91
  • Adam Stubbs
  • Any Platform
  • Perl Artistic
  • 9 Kb
  • 142
 
 

Review File::Searcher

  • captcha
 
 
New Components & Libraries software
  • ODBC Driver for xBase  v.1.3Devart ODBC Driver for xBase provides high-performance and feature-rich connectivity solution for ODBC-based applications to access FoxPro, dBase, and other databases in DBF file formats.
  • DotConnect for SugarCRM  v.1.7dotConnect for SugarCRM is an ADO.NET provider for working with SugarCRM data through the standard ADO.NET or Entity Framework interfaces.
  • Mgosoft XPS Converter SDK  v.9.0.1Convert XPS files to PDF, PS format and dozens of image formats, such as TIFF, JPEG, PNG, BMP, PCX, GIF, WMF, EMF, TGA and so on, it retains the layout, images, text, line, ellipse, color, and formatting of the original XPS file.
  • SentiVeillance SDK Trial  v.6.0.178880Real-time biometric face recognition and pedestrian/vehicle tracking SDK for surveillance systems and networks. Supports up to 10 cameras on one PC. Automatic identification against watch list, gender/emotions detection. See: youtu.be/Jpt5jE5rwCQ ...
  • File Viewer  v.7.0File Viewer is a Disk Management Utility in combination with a viewer. Search your Computer for Pictures, Sounds, Music, Documents, Database, Spread Sheets, and Audio-Video Files. You can View, Print, or Send and Receive Files over the internet using ...
  • FileBackup for Linux  v.5.90FileBackup is an easy-to-use backup and restore utility with graphical user interface. It supports patch backups, soft and hard links, able to backup on removables, CD/DVD, FTP server or Tape unit. You can easily teach the program how to do the hard ...