[ad_1]
I’m hoping a terminal expert here might know the answer to this…
From parent_folder_from, loop through all “specific_folder” folders (all immediate children), copying only “– source” folder from each to the matching folder in parent_folder_to.
All “specific_folder…” are named exactly the same between “from” and “to” parents. This and the name of the “– source” folders are the match between the two.
There are a few more files in the “to” source folders, so the command ideally would do a merge rather than a replace, to only overwrite files named the same, and not remove any already-present files in the “to” source folders.
Here’s my folder structure:
parent_folder_from
specific_folder_A
-- source
file1
file2
specific_folder_B
-- source
file1
file2
Merge all “– source” folders to this structure…
parent_folder_to
specific_folder_A
-- source
file1AlreadyPresent
file1
file2
specific_folder_B
-- source
file1AlreadyPresent
file1
file2
[ad_2]