Skip to main content
edited title
Link
Stéphane Chazelas
  • 584.8k
  • 96
  • 1.1k
  • 1.7k

How to copy all files with same exentsionextension between identical directory structures?

Source Link
Makogan
  • 113
  • 7

How to copy all files with same exentsion between identical directory structures?

I have 2 independent folders A and B. B has many files with the extension .build. Across A there are a fe subdirectories that have the same structure as subdirectories of B.

For example A has some_path/Tools/Camera/ and B has different_path/Tools/Camera. Say I manually identified 2 subdirectories one in A one in B that have the same structure, I need to copy all .build files from the subdir of B into the one in A.

How would I do this?