Skip to content

Instantly share code, notes, and snippets.

@antoniocasero
Forked from lausobo/unused_assets
Created July 11, 2014 13:11
Show Gist options
  • Select an option

  • Save antoniocasero/74b87ce41457fe7cd655 to your computer and use it in GitHub Desktop.

Select an option

Save antoniocasero/74b87ce41457fe7cd655 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