mkdir dist mkdir dist/newsletters cd newsletters for file in *.md; do echo $file pandoc --lua-filter=../include-files.lua $file --output ../dist/newsletters/$file.html done