maybe something like a file reader to put the files in a hash table.

then have some alias to split them up, such as:

if ($hget(files,1) == $hget(files,2)) { make the group and dir }

but how do i make $hget scan the whole table ? and how do i get the files to a table?