Home
Parent Directory

pftdbns

current version: 0.4.2 (April, 24th, 2007)

The program pftdbns sorts files into separated directories. The files will not be sorted by their name. They will be sorted by the structure of their name, that means they will be grouped by the sort based on the character-classes of the characters of their names.

character(s)characterclasscharacter substitution
a..z, A..Zletterl
0..9integeri
space, tab, newlineblankb
dot (".")dotd
slash ("/")slashs
other charactersothero

With these mappings from character to character all filenames will be substituted in the sort. Because of that, filenames with the same naming conventions will be grouped together. Then they will be put into directories with the name of the structure of the files.

Examples:

filenamestructure
01-hello.texiiollllldlll
01-hello.txtiiollllldlll
03-hello.texiiollllldlll
12-hello.texiiollllldlll
READMEllllll
LIESMICHllllllll
nobody.texlllllldlll
02_2_example.jpgiioiollllllldlll
42_7_example.jpgiioiollllllldlll


BTW: this tool is implemented in the excellent programming language OCaml.
last changed: 19th of July 2007
Mail: oliver _at_ first.in-berlin.de