Skip to content

Instantly share code, notes, and snippets.

@lucainnocenti
Created August 2, 2018 23:03
Show Gist options
  • Save lucainnocenti/5f5421a3e4f8ed37883bc17c5f7c0f07 to your computer and use it in GitHub Desktop.
Save lucainnocenti/5f5421a3e4f8ed37883bc17c5f7c0f07 to your computer and use it in GitHub Desktop.
Small script to clean a folder from latex auxiliary files
#!/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