I have these files: File_1.2.txt
, File_1.5.txt
, File_2.3.txt
, and File_4.7.txt
.
I want to make directories for them and sort them into the directories, like below.
Dir_001 -> File_1.2.txt File_1.5.txt
Dir_002 -> File_1.2.txt File_2.3.txt
Dir_003 -> File_2.3.txt
Dir_004 -> File_4.7.txt
Dir_005 -> File_1.5.txt
Dir_007 -> File_4.7.txt
So a directory is made for each number used by the files and all files containing the matching number of the directory are sorted into it.