file searcher 0.91
Sponsored Links
Sponsored Links
Secleted [ 0 ] software to compare
Results 1 - 15 of about 243
File::Searcher 0.91
File::Searcher is a searches for files and performs search/replacements on matching files. more>>
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.
<<lessSYNOPSIS
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.
Download (0.009MB)
Added: 2006-06-28 License: Perl Artistic License Price:
1214 downloads
VTQLserver 0.91
The VTQLserver package contains a server and clients for videotext access for Linux. more>>
The VTQLserver package contains a server and clients for videotext access for Linux. The server stores the pages of several TV-stations for parallel reading and searching.
You can run many clients in parallel i.e. search all videotext pages, and view them. The only limit is, that the server does not scale well and is not as stable as you may expect it for running it on a server machine. It is intended to be used on workstations, since I do not think, servers have TV cards nor do I have a server machine.
<<lessYou can run many clients in parallel i.e. search all videotext pages, and view them. The only limit is, that the server does not scale well and is not as stable as you may expect it for running it on a server machine. It is intended to be used on workstations, since I do not think, servers have TV cards nor do I have a server machine.
Download (0.30MB)
Added: 2006-07-19 License: GPL (GNU General Public License) Price:
1193 downloads
KinoSearch 0.15
KinoSearch is a search engine library. more>>
KinoSearch is a search engine library.
SYNOPSIS
First, write an application to build an inverted index, or "invindex", from your document collection.
use KinoSearch::InvIndexer;
use KinoSearch::Analysis::PolyAnalyzer;
my $analyzer
= KinoSearch::Analysis::PolyAnalyzer->new( language => en );
my $invindexer = KinoSearch::InvIndexer->new(
invindex => /path/to/invindex,
create => 1,
analyzer => $analyzer,
);
$invindexer->spec_field(
name => title,
boost => 3,
);
$invindexer->spec_field( name => bodytext );
while ( my ( $title, $bodytext ) = each %source_documents ) {
my $doc = $invindexer->new_doc;
$doc->set_value( title => $title );
$doc->set_value( bodytext => $bodytext );
$invindexer->add_doc($doc);
}
$invindexer->finish;
Then, write a second application to search the invindex:
use KinoSearch::Searcher;
use KinoSearch::Analysis::PolyAnalyzer;
my $analyzer
= KinoSearch::Analysis::PolyAnalyzer->new( language => en );
my $searcher = KinoSearch::Searcher->new(
invindex => /path/to/invindex,
analyzer => $analyzer,
);
my $hits = $searcher->search( query => "foo bar" );
while ( my $hit = $hits->fetch_hit_hashref ) {
print "$hit->{title}n";
}
Main features:
- Extremely fast and scalable - can handle millions of documents
- Incremental indexing (addition/deletion of documents to/from an existing index).
- Full support for 12 Indo-European languages.
- Support for boolean operators AND, OR, and AND NOT; parenthetical groupings, and prepended +plus and -minus
- Algorithmic selection of relevant excerpts and highlighting of search terms within excerpts
- Highly customizable query and indexing APIs
- Phrase matching
- Stemming
- Stoplists
<<lessSYNOPSIS
First, write an application to build an inverted index, or "invindex", from your document collection.
use KinoSearch::InvIndexer;
use KinoSearch::Analysis::PolyAnalyzer;
my $analyzer
= KinoSearch::Analysis::PolyAnalyzer->new( language => en );
my $invindexer = KinoSearch::InvIndexer->new(
invindex => /path/to/invindex,
create => 1,
analyzer => $analyzer,
);
$invindexer->spec_field(
name => title,
boost => 3,
);
$invindexer->spec_field( name => bodytext );
while ( my ( $title, $bodytext ) = each %source_documents ) {
my $doc = $invindexer->new_doc;
$doc->set_value( title => $title );
$doc->set_value( bodytext => $bodytext );
$invindexer->add_doc($doc);
}
$invindexer->finish;
Then, write a second application to search the invindex:
use KinoSearch::Searcher;
use KinoSearch::Analysis::PolyAnalyzer;
my $analyzer
= KinoSearch::Analysis::PolyAnalyzer->new( language => en );
my $searcher = KinoSearch::Searcher->new(
invindex => /path/to/invindex,
analyzer => $analyzer,
);
my $hits = $searcher->search( query => "foo bar" );
while ( my $hit = $hits->fetch_hit_hashref ) {
print "$hit->{title}n";
}
Main features:
- Extremely fast and scalable - can handle millions of documents
- Incremental indexing (addition/deletion of documents to/from an existing index).
- Full support for 12 Indo-European languages.
- Support for boolean operators AND, OR, and AND NOT; parenthetical groupings, and prepended +plus and -minus
- Algorithmic selection of relevant excerpts and highlighting of search terms within excerpts
- Highly customizable query and indexing APIs
- Phrase matching
- Stemming
- Stoplists
Download (0.22MB)
Added: 2007-06-12 License: GPL (GNU General Public License) Price:
864 downloads
File::Searcher::Similars 1.2
File::Searcher::Similars is similar files locator. more>>
File::Searcher::Similars is similar files locator.
SYNOPSIS
use File::Searcher::Similars;
File::Searcher::Similars->init(0, @ARGV);
similarity_check_name();
Similar-sized and similar-named files are picked as suspicious candidates of duplicated files.
What descirbes it better than a actual output. Sample suspicious duplicated files:
## =========
1574 PopupTest.java /home/tong/.../examples/chap10
1561 CardLayoutTest.java /home/tong/.../examples/chap1
1570 PopupButtonFrame.class /home/tong/.../examples/chap6
## =========
22984 BinderyHelloWorld.jpg /home/tong/...
17509 MacHelloWorld.gif /home/tong/...
The first column is the size of the file, 2nd the name, and 3rd the path. The motto for the listing is that, I would rather my program overkills (wrongly picking out suspicious ones) than neglects something that would cause me otherwise years to notice.
By default, File::Searcher::Similars(3) assumes that similar files within the same folder are OK. Hence you will not get duplicate warnings for generated files (like .o, .class or .aux, and .dvi files) or other file series.
Once you are sure that there are no duplications between folders and want File::Searcher::Similars(3) to scoop further, specify the first parameter as 1. This is very good to eliminate similar mp3 files within the same folder, or downloaded files from big sites where different packaging methods are used, e.g.:
## =========
66138 jdc-src.tar.gz .../ftp.ora.com/published/oreilly/java/javadc
147904 jdc-src.zip .../ftp.ora.com/published/oreilly/java/javadc
<<lessSYNOPSIS
use File::Searcher::Similars;
File::Searcher::Similars->init(0, @ARGV);
similarity_check_name();
Similar-sized and similar-named files are picked as suspicious candidates of duplicated files.
What descirbes it better than a actual output. Sample suspicious duplicated files:
## =========
1574 PopupTest.java /home/tong/.../examples/chap10
1561 CardLayoutTest.java /home/tong/.../examples/chap1
1570 PopupButtonFrame.class /home/tong/.../examples/chap6
## =========
22984 BinderyHelloWorld.jpg /home/tong/...
17509 MacHelloWorld.gif /home/tong/...
The first column is the size of the file, 2nd the name, and 3rd the path. The motto for the listing is that, I would rather my program overkills (wrongly picking out suspicious ones) than neglects something that would cause me otherwise years to notice.
By default, File::Searcher::Similars(3) assumes that similar files within the same folder are OK. Hence you will not get duplicate warnings for generated files (like .o, .class or .aux, and .dvi files) or other file series.
Once you are sure that there are no duplications between folders and want File::Searcher::Similars(3) to scoop further, specify the first parameter as 1. This is very good to eliminate similar mp3 files within the same folder, or downloaded files from big sites where different packaging methods are used, e.g.:
## =========
66138 jdc-src.tar.gz .../ftp.ora.com/published/oreilly/java/javadc
147904 jdc-src.zip .../ftp.ora.com/published/oreilly/java/javadc
Download (0.010MB)
Added: 2006-11-14 License: Perl Artistic License Price:
1075 downloads
Search::QueryParser 0.91
Search::QueryParser parses a query string into a data structure suitable for external search engines. more>>
Search::QueryParser parses a query string into a data structure suitable for external search engines.
SYNOPSIS
my $qp = new Search::QueryParser;
my $s = +mandatoryWord -excludedWord +field:word "exact phrase";
my $query = $qp->parse($s) or die "Error in query : " . $qp->err;
$someIndexer->search($query);
# query with comparison operators and implicit plus (second arg is true)
$query = $qp->parse("txt~^foo.* date>=01.01.2001 date<<less
SYNOPSIS
my $qp = new Search::QueryParser;
my $s = +mandatoryWord -excludedWord +field:word "exact phrase";
my $query = $qp->parse($s) or die "Error in query : " . $qp->err;
$someIndexer->search($query);
# query with comparison operators and implicit plus (second arg is true)
$query = $qp->parse("txt~^foo.* date>=01.01.2001 date<<less
Download (0.007MB)
Added: 2006-06-15 License: Perl Artistic License Price:
1226 downloads
Mailbox Strainer 0.91
Mailbox Strainer is a Superkaramba widget that examines an arbitrary number of IMAP mailboxes. more>>
Mailbox Strainer is a Superkaramba widget that examines an arbitrary number of IMAP mailboxes, POP3 mailboxes and local mail folders for new messages. For the latest new messages, the content of a specified header is displayed on the screen. When new messages arrive, Mailbox Strainer emits a notification via KNotify.
You may have serveral instances running such that each one checks its own collection of mailboxes. SpamAssassin may be invoked to detect spam, or message headers modified by external spam checkers can be evaluated. It is also possible to make SpamAssassin learn from specified IMAP or local folders.
Configuration can be done through a graphical interface or manually via a configuration file (an annotated configuration file is supplied).
Mailbox Strainer is written in Perl. Depending on the features you want to use, a number of Perl modules must be installed. In particular, PerlQt will be needed for the configuration dialog. All modules can be found at http://www.cpan.org , consider using the CPAN shell (perl -MCPAN -e shell) for this will automatically resolve dependencies. To find out which modules are missing on your system, invoke module-test.pl . (Hopefully I didnt forget any of them, it has become quite a number.)
The local mail capabilities are those of the Email::Folder::* modules, so they should be able to handle mbox and maildir. Currently, using the spam detection with local mbox folders is _strongly_ discouraged! It is likely to destroy your Emails, see http://www.nntp.perl.org/group/perl.pep/68 for the reason. (A possible workaround is presented in http://www.nntp.perl.org/group/perl.pep/72.) So spam checking is currently disabled for local mailboxes. You can enable it by changing lines 975, 998 and 1081 of perl/mailbox-strainer.pl. Remove "0 &&" from each of those lines.
A few words about password storage: The configuration dialog stores encrypted passwords (of length at least 8) in the configuration file. This is meant as a protection against accidentally displaying the configuration file, but nothing else. Consider this as a parody on proper encryption, even the secret key can be found in the perl scripts.
<<lessYou may have serveral instances running such that each one checks its own collection of mailboxes. SpamAssassin may be invoked to detect spam, or message headers modified by external spam checkers can be evaluated. It is also possible to make SpamAssassin learn from specified IMAP or local folders.
Configuration can be done through a graphical interface or manually via a configuration file (an annotated configuration file is supplied).
Mailbox Strainer is written in Perl. Depending on the features you want to use, a number of Perl modules must be installed. In particular, PerlQt will be needed for the configuration dialog. All modules can be found at http://www.cpan.org , consider using the CPAN shell (perl -MCPAN -e shell) for this will automatically resolve dependencies. To find out which modules are missing on your system, invoke module-test.pl . (Hopefully I didnt forget any of them, it has become quite a number.)
The local mail capabilities are those of the Email::Folder::* modules, so they should be able to handle mbox and maildir. Currently, using the spam detection with local mbox folders is _strongly_ discouraged! It is likely to destroy your Emails, see http://www.nntp.perl.org/group/perl.pep/68 for the reason. (A possible workaround is presented in http://www.nntp.perl.org/group/perl.pep/72.) So spam checking is currently disabled for local mailboxes. You can enable it by changing lines 975, 998 and 1081 of perl/mailbox-strainer.pl. Remove "0 &&" from each of those lines.
A few words about password storage: The configuration dialog stores encrypted passwords (of length at least 8) in the configuration file. This is meant as a protection against accidentally displaying the configuration file, but nothing else. Consider this as a parody on proper encryption, even the secret key can be found in the perl scripts.
Download (0.43MB)
Added: 2006-06-28 License: GPL (GNU General Public License) Price:
1214 downloads
Pachyderm-fw 0.91
Pachyderm-fw is a graphical firewall management software for Ipchains. more>>
Pachyderm-fw is a graphical firewall management software for Ipchains.Based on MySQL & PHP. It is easy to use, powerful, lots of configuration abilities etc.
Enhancements:
- New version of Pachyderm-fw released, skin support has been added. Skins will be mada available as soon as the homepage is finished.
<<lessEnhancements:
- New version of Pachyderm-fw released, skin support has been added. Skins will be mada available as soon as the homepage is finished.
Download (0.076MB)
Added: 2006-07-07 License: GPL (GNU General Public License) Price:
1204 downloads
iswitchwin 0.91
iswitchwin lets you easily switch between windows on your workspaces by typing (part of) the caption of the desired window. more>>
iswitchwin lets you easily switch between windows on your workspaces by typing (part of) the caption of the desired window.
iswitchwin has been inspired by iswitch-window.jl originally written by Topi Paavola for Sawfish window manager. iswitchwin uses libwnck to control your window manager and has been primarily written for Metacity and Gnome environment.
It should work with any EWHM compatibile window manager.
Installation:
Assuming you have decent Linux distribution with the following dependencies,
the compilation should be a matter of plain
$ ./configure
$ make
$ sudo make install
At the moment the following libraries (and their headers) are required:
a) libglade2
b) libwnck
In Debian and Ubuntu these two dependencies are available via
# apt-get install libglade2-dev libwnck-dev
Usage:
First of all make iswitchwin accessible under a hotkey. The setup depends on your particular window manager. you can use the following commands to setup iswitchwin to be run on F12 keystroke under metacity.
$ gconftool-2 --set /apps/metacity/global_keybindings/run_command_1
--type string F12
$ gconftool-2 --set /apps/metacity/keybinding_commands/command_1
--type string iswitchwin
This example assumes you are not using custom metacity commands, if you happen to do so, modify the example above to suit your needs.
When you start iswitchwin (either by a hotkey as indicated above, or simply by running the iswitchwin command) the list of all windows on all workspaces appears. You can use the arrow keys or mouse to choose the desired window and doubleclick or enter to select it.
You can also start typing the window title to search for a particular window.
Enhancements:
- This release fixes makefiles to compile cleanly on Ubuntu Feisty.
<<lessiswitchwin has been inspired by iswitch-window.jl originally written by Topi Paavola for Sawfish window manager. iswitchwin uses libwnck to control your window manager and has been primarily written for Metacity and Gnome environment.
It should work with any EWHM compatibile window manager.
Installation:
Assuming you have decent Linux distribution with the following dependencies,
the compilation should be a matter of plain
$ ./configure
$ make
$ sudo make install
At the moment the following libraries (and their headers) are required:
a) libglade2
b) libwnck
In Debian and Ubuntu these two dependencies are available via
# apt-get install libglade2-dev libwnck-dev
Usage:
First of all make iswitchwin accessible under a hotkey. The setup depends on your particular window manager. you can use the following commands to setup iswitchwin to be run on F12 keystroke under metacity.
$ gconftool-2 --set /apps/metacity/global_keybindings/run_command_1
--type string F12
$ gconftool-2 --set /apps/metacity/keybinding_commands/command_1
--type string iswitchwin
This example assumes you are not using custom metacity commands, if you happen to do so, modify the example above to suit your needs.
When you start iswitchwin (either by a hotkey as indicated above, or simply by running the iswitchwin command) the list of all windows on all workspaces appears. You can use the arrow keys or mouse to choose the desired window and doubleclick or enter to select it.
You can also start typing the window title to search for a particular window.
Enhancements:
- This release fixes makefiles to compile cleanly on Ubuntu Feisty.
Download (0.17MB)
Added: 2007-07-20 License: GPL (GNU General Public License) Price:
826 downloads
Directory Synchronize 0.91
Directory Synchronize is the small handy utility you always missed! more>>
Directory Synchronize is the small handy utility you always missed! Directory Synchronize is small, reliable, and fast. And best of all - it is Open Source; released under the GPL you are free to use and distribute it.
Directory Synchronize synchronizes the contents of one directory to another. That means you can use it to backup your data on a regular basis to another computer or another harddrive.
Or you can use Directory Synchronize to synchronize the data on your laptop with the data on your desktop.
Programmed in real platform independent Java you can use Directory Synchronize on nearly every computer platform including Windows, Linux and Macintosh.
Use the Directory Synchronize GUI for starting, pausing and stopping a synchronization.
Or use the GUI to easily create and store a configuration and use the command line to automatically start it every time you boot up your computer.
Enhancements:
- Some bugs have been solved.
- If a file can not be accessed, only a warning is issued instead of issuing a critical error and halting synchronization.
- If you select a directory instead of a file as a log for a directory definition, a line-separator was added instead of a file-separator.
- Some NullPointerExceptions in console mode have been fixed.
- The " " wildcard can be used for the path of the global log, and the " " wildcard can be used for the name of the current directory definition in the directory definition log filename.
<<lessDirectory Synchronize synchronizes the contents of one directory to another. That means you can use it to backup your data on a regular basis to another computer or another harddrive.
Or you can use Directory Synchronize to synchronize the data on your laptop with the data on your desktop.
Programmed in real platform independent Java you can use Directory Synchronize on nearly every computer platform including Windows, Linux and Macintosh.
Use the Directory Synchronize GUI for starting, pausing and stopping a synchronization.
Or use the GUI to easily create and store a configuration and use the command line to automatically start it every time you boot up your computer.
Enhancements:
- Some bugs have been solved.
- If a file can not be accessed, only a warning is issued instead of issuing a critical error and halting synchronization.
- If you select a directory instead of a file as a log for a directory definition, a line-separator was added instead of a file-separator.
- Some NullPointerExceptions in console mode have been fixed.
- The " " wildcard can be used for the path of the global log, and the " " wildcard can be used for the name of the current directory definition in the directory definition log filename.
Download (0.66MB)
Added: 2007-01-19 License: GPL (GNU General Public License) Price:
1014 downloads
ImageIM 0.91
ImageIM is a plugin for Gaim that lets buddies send screenshots to each other via HTTP protocol. more>>
ImageIM is a plugin for Gaim that lets buddies send screenshots to each other via HTTP protocol.
Users can simply click the ImageIM button, select a portion of the screen, and then send their buddy the image.
If the buddy doesnt have ImageIM, they will receive a link pointing them to the image.
Installation Instructions:
Step 1: Install the latest version of Gaim
Step 2: Register a username on imageim.com
Step 3: Download either the Windows DLL or the Linux SO file. Place this in Gaims Plugin directory. See the instructions below to build the source file.
Step 4: Once you launch Gaim, go to Preferences -> Plugins and enable ImageIM. Now select the ImageIM plugin preference and enter your username and password.
Step 5: You will now see an ImageIM button right next to the Send button in your conversation windows.
<<lessUsers can simply click the ImageIM button, select a portion of the screen, and then send their buddy the image.
If the buddy doesnt have ImageIM, they will receive a link pointing them to the image.
Installation Instructions:
Step 1: Install the latest version of Gaim
Step 2: Register a username on imageim.com
Step 3: Download either the Windows DLL or the Linux SO file. Place this in Gaims Plugin directory. See the instructions below to build the source file.
Step 4: Once you launch Gaim, go to Preferences -> Plugins and enable ImageIM. Now select the ImageIM plugin preference and enter your username and password.
Step 5: You will now see an ImageIM button right next to the Send button in your conversation windows.
Download (0.29MB)
Added: 2006-09-19 License: GPL (GNU General Public License) Price:
1130 downloads
KatchTV 0.91
KatchTV is an Internet TV application for KDE. KatchTV makes it easy to subscribe to TV channels from all over the internet in the form of podcasts, so that you can browse channels, download more>>
KatchTV is an "Internet TV" application for KDE. KatchTV makes it easy to subscribe to "TV" channels from all over the internet in the form of podcasts, so that you can browse channels, download shows, and watch them, all from one convenient interface.
KatchTV is very similar to Democracy TV, but focuses on KDE integration, using KHTMLPart and embedded players such as kaffeine. Its much faster, and lighter on resources if you run a KDE desktop without GTK apps.
Installation is easy, as long as your distro has PyKDE, PyQt, and Kaffeine. Just untar to some directory like /usr/local, and run the KatchTV program. You can also make a symlink to that executable from a directory like /usr/local/bin, and KatchTV will work out where to find its files.
Comments welcome; let me know if youve any problems using it.
<<lessKatchTV is very similar to Democracy TV, but focuses on KDE integration, using KHTMLPart and embedded players such as kaffeine. Its much faster, and lighter on resources if you run a KDE desktop without GTK apps.
Installation is easy, as long as your distro has PyKDE, PyQt, and Kaffeine. Just untar to some directory like /usr/local, and run the KatchTV program. You can also make a symlink to that executable from a directory like /usr/local/bin, and KatchTV will work out where to find its files.
Comments welcome; let me know if youve any problems using it.
Download (0.10MB)
Added: 2007-06-05 License: GPL (GNU General Public License) Price:
874 downloads
lftpsearch 1.2.0
lftpsearch is a set of Perl scripts that are searching for files and directories on FTP servers. more>>
lftpsearch is a set of Perl scripts that are searching for files and directories on FTP servers. There is the searcher, the indexer for getting the lists of all the files and directories at remote FTP servers, and the onliner for checking whether FTP servers are online.
It supports (or >) and in search queries, page splitting at search results, searching on online servers only, searching for files/directories only, searching for size limited files, caching, and Russian names.
lftpsearch program also shows some statistics on servers (files/directories amount, total size). Initially, it was created to be used over LANs.
<<lessIt supports (or >) and in search queries, page splitting at search results, searching on online servers only, searching for files/directories only, searching for size limited files, caching, and Russian names.
lftpsearch program also shows some statistics on servers (files/directories amount, total size). Initially, it was created to be used over LANs.
Download (0.017MB)
Added: 2006-02-07 License: GPL (GNU General Public License) Price:
1354 downloads
File::Xcopy 0.12
File::Xcopy can copy files after comparing them. more>>
File::Xcopy can copy files after comparing them.
SYNOPSIS
use File::Xcopy;
my $fx = new File::Xcopy;
$fx->from_dir("/from/dir");
$fx->to_dir("/to/dir");
$fx->fn_pat((.pl|.txt)$); # files with pl & txt extensions
$fx->param(s,1); # search recursively to sub dirs
$fx->param(verbose,1); # search recursively to sub dirs
$fx->param(log_file,/my/log/file.log);
my ($sr, $rr) = $fx->get_stat;
$fx->xcopy; # or
$fx->execute(copy);
# the same with short name
$fx->xcp("from_dir", "to_dir", "file_name_pattern");
The File::Xcopy module provides two basic functions, xcopy and xmove, which are useful for coping and/or moving a file or files in a directory from one place to another. It mimics some of behaviours of xcopy in DOS but with more functions and options.
The differences between xcopy and copy are:
- xcopy searches files based on file name pattern if the pattern is specified.
- xcopy compares the timestamp and size of a file before it copies.
- xcopy takes different actions if you tell it to.
The Constructor new(%arg)
Without any input, i.e., new(), the constructor generates an empty object with default values for its parameters.
If any argument is provided, the constructor expects them in the name and value pairs, i.e., in a hash array.
<<lessSYNOPSIS
use File::Xcopy;
my $fx = new File::Xcopy;
$fx->from_dir("/from/dir");
$fx->to_dir("/to/dir");
$fx->fn_pat((.pl|.txt)$); # files with pl & txt extensions
$fx->param(s,1); # search recursively to sub dirs
$fx->param(verbose,1); # search recursively to sub dirs
$fx->param(log_file,/my/log/file.log);
my ($sr, $rr) = $fx->get_stat;
$fx->xcopy; # or
$fx->execute(copy);
# the same with short name
$fx->xcp("from_dir", "to_dir", "file_name_pattern");
The File::Xcopy module provides two basic functions, xcopy and xmove, which are useful for coping and/or moving a file or files in a directory from one place to another. It mimics some of behaviours of xcopy in DOS but with more functions and options.
The differences between xcopy and copy are:
- xcopy searches files based on file name pattern if the pattern is specified.
- xcopy compares the timestamp and size of a file before it copies.
- xcopy takes different actions if you tell it to.
The Constructor new(%arg)
Without any input, i.e., new(), the constructor generates an empty object with default values for its parameters.
If any argument is provided, the constructor expects them in the name and value pairs, i.e., in a hash array.
Download (0.015MB)
Added: 2007-08-07 License: Perl Artistic License Price:
810 downloads
File::DirCompare 0.3
File::DirCompare is a Perl module to compare two directories using callbacks. more>>
File::DirCompare is a Perl module to compare two directories using callbacks.
SYNOPSIS
use File::DirCompare;
# Simple diff -r --brief replacement
use File::Basename;
File::DirCompare->compare($dir1, $dir2, sub {
my ($a, $b) = @_;
if (! $b) {
printf "Only in %s: %sn", dirname($a), basename($a);
} elsif (! $a) {
printf "Only in %s: %sn", dirname($b), basename($b);
} else {
print "Files $a and $b differn";
}
});
# Version-control like Deleted/Added/Modified listing
my (@listing, @modified); # use closure to collect results
File::DirCompare->compare(old_tree, new_tree), sub {
my ($a, $b) = @_;
if (! $b) {
push @listing, "D $a";
} elsif (! $a) {
push @listing, "A $b";
} else {
if (-f $a && -f $b) {
push @listing, "M $b";
push @modified, $b;
} else {
# One file, one directory - treat as delete + add
push @listing, "D $a";
push @listing, "A $b";
}
}
});
File::DirCompare is a perl module to compare two directories using a callback, invoked for all files that are different between the two directories, and for any files that exist only in one or other directory (unique files).
File::DirCompare has a single public compare() method, with the following signature:
File::DirCompare->compare($dir1, $dir2, $sub, $opts);
The first three arguments are required - $dir1 and $dir2 are paths to the two directories to be compared, and $sub is the subroutine reference called for all unique or different files. $opts is an optional hashref of options - see OPTIONS below.
The provided subroutine is called for all unique files, and for every pair of different files encountered, with the following signature:
$sub->($file1, $file2)
where $file1 and $file2 are the paths to the two files. For unique files i.e. where a file exists in only one directory, the subroutine is called with the other argument undef i.e. for:
$sub->($file1, undef)
$sub->(undef, $file2)
the first indicates $file1 exists only in the first directory given ($dir1), and the second indicates $file2 exists only in the second directory given ($dir2).
<<lessSYNOPSIS
use File::DirCompare;
# Simple diff -r --brief replacement
use File::Basename;
File::DirCompare->compare($dir1, $dir2, sub {
my ($a, $b) = @_;
if (! $b) {
printf "Only in %s: %sn", dirname($a), basename($a);
} elsif (! $a) {
printf "Only in %s: %sn", dirname($b), basename($b);
} else {
print "Files $a and $b differn";
}
});
# Version-control like Deleted/Added/Modified listing
my (@listing, @modified); # use closure to collect results
File::DirCompare->compare(old_tree, new_tree), sub {
my ($a, $b) = @_;
if (! $b) {
push @listing, "D $a";
} elsif (! $a) {
push @listing, "A $b";
} else {
if (-f $a && -f $b) {
push @listing, "M $b";
push @modified, $b;
} else {
# One file, one directory - treat as delete + add
push @listing, "D $a";
push @listing, "A $b";
}
}
});
File::DirCompare is a perl module to compare two directories using a callback, invoked for all files that are different between the two directories, and for any files that exist only in one or other directory (unique files).
File::DirCompare has a single public compare() method, with the following signature:
File::DirCompare->compare($dir1, $dir2, $sub, $opts);
The first three arguments are required - $dir1 and $dir2 are paths to the two directories to be compared, and $sub is the subroutine reference called for all unique or different files. $opts is an optional hashref of options - see OPTIONS below.
The provided subroutine is called for all unique files, and for every pair of different files encountered, with the following signature:
$sub->($file1, $file2)
where $file1 and $file2 are the paths to the two files. For unique files i.e. where a file exists in only one directory, the subroutine is called with the other argument undef i.e. for:
$sub->($file1, undef)
$sub->(undef, $file2)
the first indicates $file1 exists only in the first directory given ($dir1), and the second indicates $file2 exists only in the second directory given ($dir2).
Download (0.008MB)
Added: 2007-07-05 License: Perl Artistic License Price:
841 downloads
File 4.21
File attempts to classify files depending on their contents and prints a description if a match is found. more>>
File is the open source implementation of the file command used on almost every free operating system (OpenBSD, Linux, FreeBSD, NetBSD) and also on systems that use free software (including OS/2, DOS, MS Windows, etc.).
The file command, if youre not familiar with it, is a command-line tool that tells you in words what kind of data a file contains. Unlike MS-Windows, UNIX and other systems dont rely on filename extentions to tell you the type of a file, but look at the files actual contents. This is, of course, more reliable, but requires a bit of I/O.
The original file command shipped with Bell Labs UNIX but was unavailable in source form to the masses before Ians reimplementation.
This file command (and magic file) was originally written by Ian Darwin (who still contributes occasionally) and is now maintained by a group of developers lead by Christos Zoulas.
Whos using it?
Every known BSD distribution (FreeBSD, NetBSD, OpenBSD, Darwin/Mac OS X, etc)
Every known Linux distribution
The Apache httpd server mod_mime_magic module uses the file commands innards to make file type guessing more reliable under Apache HTTPD.
<<lessThe file command, if youre not familiar with it, is a command-line tool that tells you in words what kind of data a file contains. Unlike MS-Windows, UNIX and other systems dont rely on filename extentions to tell you the type of a file, but look at the files actual contents. This is, of course, more reliable, but requires a bit of I/O.
The original file command shipped with Bell Labs UNIX but was unavailable in source form to the masses before Ians reimplementation.
This file command (and magic file) was originally written by Ian Darwin (who still contributes occasionally) and is now maintained by a group of developers lead by Christos Zoulas.
Whos using it?
Every known BSD distribution (FreeBSD, NetBSD, OpenBSD, Darwin/Mac OS X, etc)
Every known Linux distribution
The Apache httpd server mod_mime_magic module uses the file commands innards to make file type guessing more reliable under Apache HTTPD.
Download (0.53MB)
Added: 2007-05-25 License: GPL (GNU General Public License) Price:
535 downloads
Secleted [ 0 ] software to compare
Copyright Notice:
Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future software development. The above file searcher 0.91 search only lists software in full, demo and trial versions for free download. Download links are directly from our mirror sites or publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed