Skip to content

Instantly share code, notes, and snippets.

@jmnavarro
Created February 21, 2013 11:11
Show Gist options
  • Save jmnavarro/5003986 to your computer and use it in GitHub Desktop.
Save jmnavarro/5003986 to your computer and use it in GitHub Desktop.
Your XCode project uses a lot of images. Maybe some of them are not used anymore, but which ones?
cd ./Images
for f in *.png; do
fn=`echo "$f" | cut -d'.' -f1`
if ! grep -q @2x <<< $fn; then
if ! $(grep -i -r --include=*.m --include=*.xib "`echo "$f" | cut -d'.' -f1`" ../Classes/ > /dev/null); then
echo $f
fi
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment