Created
March 9, 2018 19:38
-
-
Save Dammmien/499856f2c4e0ea8b41bc4dab0b4b32ee to your computer and use it in GitHub Desktop.
Find unused files in a project (SVG in this example)
This file contains hidden or 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
for FILE in $(find . -name "*.svg"); do | |
grep -qR $(basename "$FILE") * || echo "you can remove $FILE" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment