for file in *.md do output="${file%.md}.txt" pandoc -f markdown -t dokuwiki -o "$output" "$file" done