#!/bin/sh [ $# -eq 0 ] && echo "specify an .ms file" && exit 1 groff -e "$1" -ms -Tpdf > $(echo "$1" | sed -e "s/\.ms/.pdf/")