Move a bunch of files to folders grouped by some common factor