Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.334.830 Times

Dir::Purge 1.02

  Date Added: February 25, 2010  |  Visits: 963

Dir::Purge

Report Broken Link
Printer Friendly Version


Product Homepage
Download (95 downloads)



Dir::Purge is a Perl module to purge directories to a given number of files. SYNOPSIS perl -MDir::Purge -e purgedir (5, @ARGV) /spare/backups use Dir::Purge; purgedir ({keep => 5, strategy => "by_age", verbose => 1}, "/spare/backups"); use Dir::Purge qw(purgedir_by_age); purgedir_by_age (5, "/spare/backups"); Dir::Purge implements functions to reduce the number of files in a directory according to a strategy. It currently provides one strategy: removal of files by age. By default, the module exports one user subroutine: purgedir. The first argument of purgedir should either be an integer, indicating the number of files to keep in each of the directories, or a reference to a hash with options. In either case, a value for the number of files to keep is mandatory. The other arguments are the names of the directories that must be purged. Note that this process is not recursive. Also, hidden files (name starts with a .) and non-plain files (e.g., directories, symbolic links) are not taken into account. All directory arguments and options are checked before anything else is done. In particular, all arguments should point to existing directories and the program must have read, write, and search (execute) access to the directories. One additional function, purgedir_by_age, can be exported on demand, or called by its fully qualified name. purgedir_by_age calls purgedir with the "by age" purge strategy preselected. Since this happens to be the default strategy for purgedir, calling purgedir_by_age is roughly equivalent to calling purgedir..

Requirements: No special requirements
Platforms: Linux
Keyword: Age Directories Dirpurge Files Libraries Number Number Of Files Perl Perl Module Programming Purge
Users rating: 0/10

License: Freeware Size: 6.14 KB
USER REVIEWS
More Reviews or Write Review


DIR::PURGE RELATED
Form Processors  -  Limit number of checked checkboxes script 1.1
This short but practical script lets you limit the number of checkboxes within a group that can be checked.For example, you may have a list of 5 checkboxes, but wish to allow the user only the ability to check a maximum of 2 at any time. Use this...
40.96 KB  
Communication  -  Blind detection of the number of sources with gerschgorin radii 1.0
Let us assume the following MIMO model:Y(k)=HX(k)+Y(k)This file can detect the number of sources, i.e the size of the vector X(k) from the received signal Y(k). The noise is assumed spatially white and the number of receivers must be strictly...
10 KB  
Communication  -  Blind detection of the number of sources with information criteria 1.0
Let us assume the following MIMO model:Y(k)=HX(k)+Y(k)This file can detect the number of sources, i.e the size of the vector X(k) from the received signal Y(k). The noise is assumed spatially white and the number of receivers must be strictly...
10 KB  
Communication  -  Calculate number of windows of data 1.0
Takes the data length, window length and window overlap length as inputs and returns the number of windows that will result. Will also return the start samples and end samples of each window if asked.
10 KB  
Education  -  Ideal Gas Number Of States 1.0
The STP IdealGasNumberOfStates program numerically evaluates the number of states of an ideal gas and demonstrates finite size effects by plotting the actual number of states and the asymptotic expression. The default is two-dimensional system...
462.85 KB  
Miscellaneous Mail Tools  -  Number of Selected Items - Outlook 2007 1.0.1.0
Quickly see the number of selected emails, appointments, contacts, and more in Outlook 2007! Number of Selected Items is an add-in for Outlook 2007 that displays the number of items you currently have selected in the current view.
723 KB  
Miscellaneous  -  A generator for any number of for loop 1.0
Python has a number of nice methods to handle 'for' loops. However, the situation often arises where you have a large number of nested loops. This script allows you to reduces the number of loops to one.
 
Communication  -  Blind detection of the number of sources with hypothesis tests 1.0
Let us assume the following MIMO model:Y(k)=HX(k)+Y(k)This file can detect the number of sources, i.e the size of the vector X(k) from the received signal Y(k). The noise is assumed spatially white and the number of receivers must be strictly...
10 KB  
Communication  -  Blind detection of the number of sources with a predicted eigenvalue approach 1.0
Let us assume the signal model:Y(k)=HX(k)+B(k)This script provides a method for the blind recognition of the number of sources (the size of X(k)). The noise must be spatially white and the number of receivers is assumed to be stricly greater than...
10 KB  
Communication  -  Number of sinusoids Estimator 1.0
Fast Algorithm estimating the number of sinusoids in a white Gaussian noise. This algorithm use a sub-space method based on chi-square statistics of eigen values of the Autocorrelation Matrix.Example :clear, close all hiddenN = 512;L_vrai = 4;fe =...
10 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 4.0.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
3.88 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB