Script for renaming and moving folders

Perhaps this section from the documentation already helps: