I have a simple bash script that takes all .md
files of the current folder and merge them into a new file:
for f in *.md; do cat "$f"; echo; done > output.txt;
It works well. Now I'd like to extend this script to takes a bunch of directory as parameters and combine all the md files of all these directories into one new file. How can I do that?