Created
April 26, 2020 09:26
-
-
Save enijkamp/cf8b2080574f8b712845c2ad178900ee to your computer and use it in GitHub Desktop.
how to clean unused latex images
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
vim /usr/local/texlive/2016/texmf.cnf | |
max_print_line=2000 | |
error_line=254 | |
half_error_line=238 | |
#!/bin/bash | |
for image_file in $(find Part_1/Chpt_9_Generator_and_Descriptor/figures -type f) | |
do | |
if grep $image_file *.log -c > 1 | |
then | |
echo "File $image_file is in use." | |
else | |
echo "File $image_file is not in use." | |
rm "$image_file" | |
fi | |
done | |
for image_file in $(find Part_1/Chpt_10_A_Tale_of_Three_Families/figures -type f) | |
do | |
if grep $image_file *.log -c > 1 | |
then | |
echo "File $image_file is in use." | |
else | |
echo "File $image_file is not in use." | |
rm "$image_file" | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment