Autosave: 2022-12-27 18:30:05

This commit is contained in:
thomasabishop 2022-12-27 18:30:05 +00:00
parent 3f1a747f2f
commit 5f40759a5b

View file

@ -0,0 +1,11 @@
#!/bin/bash
find /home/thomas/repos/computer_science/img -type f | while read filename; do
rg "${filename##*/}" ../ --type markdown >/dev/null 2>&1
if [ "$?" -eq 1 ]; then
echo "Deleted unused image: ${filename##*/}"
rm $filename
fi
done