Skip to content

Instantly share code, notes, and snippets.

@luisobo
Created May 26, 2014 19:34
Show Gist options
  • Star 8 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save luisobo/d0de697883eabe867925 to your computer and use it in GitHub Desktop.
Save luisobo/d0de697883eabe867925 to your computer and use it in GitHub Desktop.
Detect unused assets
#!/bin/bash
all_assets=`find $1 -type f | uniq | grep -v @2x`
for asset in $all_assets; do
name=`basename $asset | cut -d . -f 1`
count=`git grep $name | grep -v project.pbxproj: | wc -l`
echo -e "$count\t$asset"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment