Skip to content

Instantly share code, notes, and snippets.

@Dammmien
Created March 9, 2018 19:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Dammmien/499856f2c4e0ea8b41bc4dab0b4b32ee to your computer and use it in GitHub Desktop.
Save Dammmien/499856f2c4e0ea8b41bc4dab0b4b32ee to your computer and use it in GitHub Desktop.
Find unused files in a project (SVG in this example)
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