hey, that's pretty sweet! I usually just use bash for renaming .jpg to .jpeg, but its cool to have a tool that does that _and_ regularizes digits.
thx, -Lkb On Tue, 19 Mar 2002, John Hunter wrote: > > Here is a script I wrote a couple of years ago that I find useful. It > is a batch file renaming perl script, so you can, for example, do > regex search and replace on file names, like, converting all *.jpeg to > *.jpg with: > > ecp -r -f \.jpeg -t .jpg *.jpeg > > It has a couple of nice features: > > 1) It has a -l option to list what changes would be made, without > actually making them. Very helpful for tweaking regexps > > 2) It has case conversion options > > 3) It can regularize digits lengths, so if you have > file1,file2,...,file999, you can convert these to > file001,file002,...,file999 so the lexical ordering is correct > > 4) Prepend prefixes or append suffixes to all files > > 5) Complete perldoc, and doesn't require any nonstandard modules > > > > As I said, I wrote this several years ago when I was wetter behind the > ears, so I am sure there is much that could be improved > > _______________________________________________ Bits mailing list [EMAIL PROTECTED] http://www.sugoi.org/mailman/listinfo/bits
