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) | characterclass | character substitution |
---|---|---|
a..z, A..Z | letter | l |
0..9 | integer | i |
space, tab, newline | blank | b |
dot (".") | dot | d |
slash ("/") | slash | s |
other characters | other | o |
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:
filename | structure |
---|---|
01-hello.tex | iiollllldlll |
01-hello.txt | iiollllldlll |
03-hello.tex | iiollllldlll |
12-hello.tex | iiollllldlll |
README | llllll |
LIESMICH | llllllll |
nobody.tex | lllllldlll |
02_2_example.jpg | iioiollllllldlll |
42_7_example.jpg | iioiollllllldlll |