I would like to have a bash script to loop through a directory tree and make symlinks to a new directory whit no tree but changing the name of the file to a new one which tells directory.
Something like this:
Origin:
Directory
-- DirectoryA
---- DirectoryAA
------ FileAA1
------ FileAA2
----FileA1
----FileA2
-- DirectoryB
----FileB1
-- DirectoryC
----FileC1
----FileC2
----FileC3
Destination:
DirectoryDest
--DirectoryA - DirectoryAA - FileAA1
--DirectoryA - DirectoryAA - FileAA2
--DirectoryA - FileA1
--DirectoryA - FileA2
--DirectoryB - FileB1
--DirectoryC - FileC1
--DirectoryC - FileC2
--DirectoryC - FileC3
This should do it:
This will result in these files: