I am trying to concat all files with similar names but in different subdirectories.
I found this solution for exact file matches but I am not sure how to adapt it for partial matches
example file paths:
out/ch1/name1.1.assoc.txt out/ch1/name2.1.assoc.txt out/ch1/name3.1.assoc.txt out/ch2/name1.2.assoc.txt out/ch2/name2.2.assoc.txt out/ch2/name3.2.assoc.txt
I have 20 different ch directories, and the final number in the file name matches the directory number.
I have a file with the names I am trying to concat.
name1 name2 name3
How can I adapt this solution or concat this files in another way? End result I would like one directory with one file for each name in my file list (in this example the end result would be 3 files called name1, name2 and name3). we