I have multiple .txt files in different levels of subdirectory. All txt files are in the final iteration, that is, there is no level with both .txt files and further directories. I want to concatenate them all into one new text file, but can't find a simple way to go through all the subdirectories.
A command I've found, that is to be entered into the python command line terminal thus:
$ cat source/file/*.txt > source/output/output.txt
But I am not sure how I could make this iterate over multiple subdirectories. (I am a real beginner with python, there seems to be some confusion. Is this not a python command? The source I found it from claimed it was...)