I want to recursively concatenate all the files of a type in a directory structure whilst specifying some files that should come first and some files that should come last.
For example, give I have the following file structure:
header.txt
interesting.txt
sadfsa.txt
oih.txt
nkli.txt
footer.txt
dir/lnln.txt
I would like to specify the concatenation as something like: cat header.txt interesting.txt *.txt footer.txt. But this, would include header.txt - and the other specified files - twice.
What would be the cleanest approach to do this be?