a Ruby command-line script to split a directory with a large number of files into subdirectories