Created
April 21, 2018 22:30
-
-
Save kevincolten/e3a443fabff3cd851580cba39a0e441d to your computer and use it in GitHub Desktop.
find unused 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
find ./_images/* | | |
awk -F/ '{print $NF}' | | |
sort -u > ./tmp/images.txt && | |
grep -IhFriof ./tmp/images.txt --exclude-dir=".git" . | | |
awk '{print $0}' | sort -u | comm -23 ./tmp/images.txt - |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment