Sorter

On occasion, I've had large numbers of files that have needed to be sorted into directories as well as stripping out underscores from the file names.

Sorter is a command line program to sort files into directories based on file name.  In addition, it also has options to rename the files, replacing spaces with underscores and vice versa.

Like Zipper, this program came in handy when setting up my entertainment center pc.  Instead of dragging and dropping files, I just have to navigate to the directory they're all in and run one simple command.  This was quite nice when setting up the directory structure for my old consoles as well as for sorting the music which I had ripped from my (some say oversized) CD collection.


Directions:  Add Sorter to your PATH.  Navigate to the directory containing the files you want to sort and run Sorter with any flags that you require.  Without any flags, Sorter simply sorts the files into directories.

List of flags:


Notes: This program was tested with Ruby version 1.8. The .exe, however, does not need any version of ruby installed.


Download:

Sorter (.exe file)

Sorter source (Hosted on GitHub)


I'd like to give a special thanks to Erik Veenstra for pointing out why I couldn't get his program, rubyscript2exe to work with this program in order to make an exe