Skip to content

Instantly share code, notes, and snippets.

@dbarden
Created September 16, 2016 10:59
Show Gist options
  • Save dbarden/346ed7aac90a341961d65b3babf0cd0b to your computer and use it in GitHub Desktop.
Save dbarden/346ed7aac90a341961d65b3babf0cd0b to your computer and use it in GitHub Desktop.
#!/bin/bash
for file in $(find . -name "*imageset" | xargs -IX basename "X" | sed s/".imageset"//); do
grep --exclude-dir=Resources/Assets.xcassets --exclude-dir=Resources/CustomAssets.xcassets -c $file * -R > /dev/null
if [ $? -ne 0 ]
then
echo "Could not create find $file"
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment