#!/bin/bash for md in *.md; do if [[ "$md" = "README.md" ]]; then continue fi pandoc --from=gfm --to=pdf -o "${md%.*}.pdf" "$md" done