# This script was created to convert a directory full # of markdown files into rst equivalents. It uses # pandoc to do the conversion. FILES=*.md for f in $FILES do echo "Processing $f file..." extension="${f##*.}" filename="${f%.*}" # take action on each file. $f store current file name `pandoc $f -t rst -o $filename.rst` done