Basically, I'm looking for a script to automate elements (see illustration below) in Ubuntu. I am thinking of using a bash script, but other solutions (eg, python?) Would also be excellent.
1) Suppose I have several real directories "Folder 1" and "Folder 2" with subfolders and files. Assuming the files in the corresponding folders 1 and 2 have unique names. How to create a new merged folder where each of the files is symbolic compared to the original folders?
2) The script should also provide an option to remove broken symbolic links in the merged folder.
The reason I want to do this is that I would like to improve the organization of my business. for example. "Dossier 1 | 2" can be data obtained at different times in time. Then I created Merged_Folder1, Merged_Folder2, and so on. for different projects without duplicating large files.