Say I have a directory structure that looks like this:
file1.txt
folder1/
file2.txt
folder2/
file3.txt
How can I concatenate file1.txt, file2.txt, and file3.txt into a single file?
Edit: This directory structure is only an example. The question is about how to concatenate files from subfolders given any directory structure and any number of files.
Best Answer