Wrapped for posting. Remove the say and qq[] once you're sure it would do the right thing:
perl -E"$o=$_ and s[^(.+)(\d+)( - \d+\.jpg)][$1.sprintf('%03d',$2).$3]e and say qq[rename $o $_] for map{ glob $_ .'\*.jpg'} grep{ -d } glob $ARGV[0]" \theDir\*
In reply to Re: Mass file renaming help
by BrowserUk
in thread Mass file renaming help
by Bastille
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |