Skip to content

Instantly share code, notes, and snippets.

@wolffan
Forked from luisobo/unused_assets
Created May 26, 2014 20:51
Show Gist options
  • Save wolffan/de4f45099dbc1f02679e to your computer and use it in GitHub Desktop.
Save wolffan/de4f45099dbc1f02679e to your computer and use it in GitHub Desktop.
#!/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