This scala script can be used to rename files in batch based on input and output templates.