Ok so the situation is that I have an unknown number of sub-directories that all follow the same naming profile
folder0, folder1, folder2, folder3 etc
Now each folder will have 3 text files and these text files will have the same 3 file names in all folders
file1 file2 file3
I would like to find an easy way to concatenate all the text files in all the folders into one text file, starting in folder0 with file1, then file2, then file3 and the same order in all folders.
Now for a small number of folders I could use cat
cat folder0/file1 folder0/file2 folder0/file3 folder1/file1 folder1/file2 folder1/file3 folder2/file1 folder2/file2 folder2/file3 folder3/file1 folder3/file2 folder3/file3 > textfile
but the number of folders is unknown and could range into the 100's or 1000's
anybody have any indea of a script that would acomplish this.