#! /bin/sh sed -n -e 's/^[^%]*\\input{\([^}]\+\)}.*$/\1/p' \ < umlaut.tex > latex-include-out.txt