random/latex-cleanup
2021-04-20 00:24:49 +05:30

7 lines
259 B
Text
Executable file

# I use it to clean up latex build files from a directory after I'm done with the project.
#!/bin/bash
[ 0 -lt $(ls *.tex 2>/dev/null | wc -w) ] && find . -maxdepth 1 -type f -regex ".*\.\(aux\|log\|synctex.gz\|bbl\|blg\)" -exec totrash {} \;
echo "Done!"