1
0
Fork 0
mirror of https://github.com/SinTan1729/random.git synced 2024-12-26 13:18:35 -06:00
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!"