Created
December 17, 2022 08:33
-
-
Save daniel-vera-g/04452cb9d066be9623d4b340f81f1ecb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Clean up temporary latex files | |
# Requires fd-find dependency | |
FilesToClean=("aux" "bbl" "blg" "fdb_latexmk" "fls" "log" "out" "pdf" "acn" "glo" "ist" "toc") | |
for file in ${FilesToClean[@]}; do | |
echo "Cleaning up ${file} files.." | |
fd -e $file --no-ignore -x rm {} | |
done | |
echo $'\nCleaning up complete.' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment