The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]
Scripts / handy tips
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Previous Message  |  Next Message 
 mvre 0.31 - MoVe files based on given Regular Expressions
Author: parv 
Date:   23-11-03 01:40

mvre http://www103.pair.com/parv/comp/src/perl/mvre
is a Perl program (written for versions >=5.6, but could be easily modified, i
hope, to accomodate 5.005_3) to move files based on Perl regular expressions.
Please see
http://www103.pair.com/parv/comp/src/perl/mvre.pod:
short description is...


In default mode, mvre moves file located in the current directory,
matching (Perl) regex, to directory specified by -out-dir. An output
directory is required in all cases. See -out-dir and -out-find-path
options.

Files to be moved, also referred as "input files", are specified either
via -in-select option and/or as argument(s) given after all the options.

Order of input selection regex, *-in-select* or *-select* option, and
output directory specified is important. One-to-one relation exists
between each regex to select input files and the output directory,
either explicitly specified or found in path specified via
*-out-file-path* option.


It requires my own Parv::Util
http://www103.pair.com/parv/comp/src/perl/modules/Parv/Util.pm
module, besides following standard/ordinary modules...

Pod::Usage
File::Copy
File::Find
Getopt::Long


 Reply To This Message  |  Forum List  |  Flat View   Newer Topic  |  Older Topic 

 Topics Author  Date
 mvre 0.31 - MoVe files based on given Regular Expressions   new
parv 23-11-03 01:40 
 Re: Phorum syntax   new
parv 23-11-03 01:44 
 Re: Phorum syntax   new
Dan 23-11-03 04:37 
 Re: mvre 0.31 - MoVe files based on given Regular Expressions   new
parv 23-11-03 23:26 
 Re: mvre 0.31 - MoVe files based on given Regular Expressions   new
parv 06-12-03 05:28 


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 Remember my login:
   
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum

phorum.org