Skip to content

Instantly share code, notes, and snippets.

@daniel-vera-g
Created December 17, 2022 08:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daniel-vera-g/04452cb9d066be9623d4b340f81f1ecb to your computer and use it in GitHub Desktop.
Save daniel-vera-g/04452cb9d066be9623d4b340f81f1ecb to your computer and use it in GitHub Desktop.
#!/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