Skip to content

Instantly share code, notes, and snippets.

View ozair-kafray's full-sized avatar

Ozair Kafray ozair-kafray

View GitHub Profile
@danielctull
danielctull / find-unused-images.sh
Created October 12, 2011 07:36
A script to find images that are not used in an iOS project. Originally from http://stackoverflow.com/questions/6113243/how-to-find-unused-images-in-an-xcode-project
#!/bin/sh
PROJ=`find . -name '*.xib' -o -name '*.[mh]'`
for png in `find . -name '*.png'`
do
name=`basename $png`
if ! grep -q $name $PROJ; then
echo "$png is not referenced"
fi
done