Differences between revisions 2 and 3
Revision 2 as of 2008-06-29 00:50:25
Size: 223
Editor: CarlNobile
Comment:
Revision 3 as of 2008-06-29 00:59:13
Size: 781
Editor: CarlNobile
Comment:
Deletions are marked like this. Additions are marked like this.
Line 6: Line 6:

This is a very flexible script and as such has a lot of command line arguments. If run with no arguments the following usage will be displayed to the screen.

{{{
$ rename.py
Usage: /home/cnobile/bin/rename.py -[DNR] -[i Incoming path, d Destination path, o 'File pattern old', n 'File pattern new', s Start sequence, e End sequence, r New sequence start]
}}}

Example command line:

{{{
$ rename.py -i . -d . -o 'p8220\n\n\n.jpg' -n 'family-\n\n\n.jpg' -s 1 -e 16 -r 1 -N
}}}

Where: -i is the source path
       -d is the destination path

MultiFileRenamer

This is a small script that I wrote in Python some time ago that renames, moves, copies multiple files. It can use a regular expressions as part of it renaming function.

rename.py

This is a very flexible script and as such has a lot of command line arguments. If run with no arguments the following usage will be displayed to the screen.

$ rename.py
Usage: /home/cnobile/bin/rename.py -[DNR] -[i Incoming path, d Destination path, o 'File pattern old', n 'File pattern new', s Start sequence, e End sequence, r New sequence start]

Example command line:

$ rename.py -i . -d . -o 'p8220\n\n\n.jpg' -n 'family-\n\n\n.jpg' -s 1 -e 16 -r 1 -N

Where: -i is the source path

  • -d is the destination path

MultiFileRenamer (last edited 2010-08-07 15:44:54 by CarlNobile)