I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2008-12-21 22:57:48-08 by snah
rename files in multiple folders and sub-folders
Hello Phil
I would like to rename files located in one folder and its many sub-folders.
I got the command for renaming the files in one folder, but I don't succeed when I move up one folder.

This is the command I am currently using. It renames the files to 'DateTimeOriginal.X3F' (just the way I want the result to be):
exiftool "-FileName<${DateTimeOriginal}.x3f" -d %Y-%m-%d_%H-%M-%S *.x3f

How would I have to enter the command so that all files in folder '\11_27 Death Valley\' (and its sub-folders) will get renamed to 'DateTimeOriginal.X3F'?
Is there a switch like -r (recursively) or do I have to provide a filelist?
Many Foldernames contain spaces.

Help is highly appreciated, many thanks in advance.
Hans
Direct Responses: 9580 | Write a response