Rename files with a pattern.