Paste files with the same name in different directories

ganon551

New Member
Joined
Mar 15, 2023
Messages
1
Reaction score
0
Credits
15
Hi there,

I have multiple directories, each one with the exact same structure and file names. for instance :

dir1/a/a/00
dir2/a/a/00
etc

I have a bunch of files (more than 50k per directory).

What I would like is to paste them using paste command, without any separator (for that I saw how to do). The annoying thing is that I have no idea how to perform such an action on each file recursively.

The output would be

dir3/a/a/00

Containing the pasted data from dir1/a/a/00 and dir2/a/a/00
Would you have an idea how to perform this ?

Thank you for your enlightments.
Regards
 

Staff online

Members online


Top