I ran across a general-purpose file renaming script a few years back.
I keep it on all of my systems as /usr/local/bin/plrename, and it's
included below.
"Usage: rename exper [files]\n";
I've got that script too, but I couldn't think of an expression to do
s/"bunch of files"/"numerical ordered files"/g
The files he listed are supposed to change
from:
1503.jpg
1504.jpg
1505.jpg
to:
1.jpg
2.jpg
3.jpg
If he's got more than 9, he can't do s/150//g, and I'm not good enough
with regex to know if the sort of naming I'm thinking he's asking for
is possible.
If you weren't just mentioning the script as a good general renamer,
couldn't you show us regex-neophites how to do it?
Thanks,
--
Michael Moore
--------------------
BYU Unix Users Group
http://uug.byu.edu/
The opinions expressed in this message are the responsibility of their
author. They are not endorsed by BYU, the BYU CS Department or BYU-UUG.
___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list