#!/usr/bin/env bash JUNK="*.aux *.bbl *.bcf *.blg *.log *.out *.run.xml *.toc *.lof *.lot *.fls *.fdb_latexmk *.synctex* *.ptc *.ind *.ilg *.idx *.glo *.glsdefs *.glg *.gls" for item in $JUNK; do find . -name "$item" -exec rm {} \; done