Bash script to convert reStructuredText (rst) formatted files to Markdown formatted files using Pandoc.
#!/usr/bin/env bash
FILES="*.rst"
for f in $FILES
do
filename="${f%.*}"
echo "Converting '$f' to '$filename.md'"
pandoc "$f" -f rst -t markdown -o "$filename.md"
done