1
0
Fork 0
mirror of https://github.com/SinTan1729/random.git synced 2024-12-26 13:18:35 -06:00
random/latex-cleanup

16 lines
387 B
Text
Raw Normal View History

2021-04-19 13:54:49 -05:00
# I use it to clean up latex build files from a directory after I'm done with the project.
#!/bin/bash
2021-06-29 12:20:52 -05:00
for f in *.tex; do
h=$(basename "$f" .tex)
echo "Trashing files accompanying $h.tex..."
for g in "$h".*; do
if [[ ${g: -4} != ".tex" && ${g: -4} != ".pdf" ]] ; then
echo "Trashing $g..."
totrash "$g"
fi
done
done
2021-04-19 13:54:49 -05:00
echo "Done!"