1 #! /bin/sh 2 3 PROJ=`find . -name '*.xib' -o -name '*.[mh]'` 4 5 for png in ` find . -name '*.png'` 6 7 do 8 9 name =`basename $png` 10 11 12 if ! grep -qhs "$name" "$PROJ"; then 13 14 echo "$png is not referenced" 15 fi 16 17 done
reference
1.点我
1 #! /bin/sh 2 3 PROJ=`find . -name '*.xib' -o -name '*.[mh]'` 4 5 for png in ` find . -name '*.png'` 6 7 do 8 9 name =`basename $png` 10 11 12 if ! grep -qhs "$name" "$PROJ"; then 13 14 echo "$png is not referenced" 15 fi 16 17 done
reference
1.点我