Created
August 2, 2018 23:03
-
-
Save lucainnocenti/5f5421a3e4f8ed37883bc17c5f7c0f07 to your computer and use it in GitHub Desktop.
Small script to clean a folder from latex auxiliary files
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/sh | |
arg=${1:-.} | |
exts="aux bbl blg brf idx ilg ind lof log lol lot out toc synctex.gz fls fdb_latexmk run.xml bcf" | |
if [ -d $arg ]; then | |
for ext in $exts; do | |
rm -f $arg/*.$ext | |
done | |
rm -f $arg/*Notes.bib | |
else | |
for ext in $exts; do | |
rm -f $arg.$ext | |
done | |
rm -f $argNotes.bib | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment