Last active
August 29, 2015 14:01
-
-
Save ipoval/92812bde10c80adbd60f to your computer and use it in GitHub Desktop.
find_unused_images.sh
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
# ! dynamically generated image names exist | |
# ! watch nginx logs for image requests to find unused images | |
find ./app/assets/images/ -type f -exec basename {} \; | | |
while read line; do $(grep -r $line ./app/views/ >/dev/null) || | |
echo $line; done > ~/.Trash/res.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment