Skip to content

Instantly share code, notes, and snippets.

@feymartynov
Last active December 28, 2015 12:29
Show Gist options
  • Save feymartynov/7501481 to your computer and use it in GitHub Desktop.
Save feymartynov/7501481 to your computer and use it in GitHub Desktop.
find missing retina images
for img in `find -type f -name '*_*' ! -name '*@2x*'`; do test $(echo `basename $img | sed 's/\.[^\.]*$//'`@2x.`basename $img | sed 's/^.*\.//'` | xargs find `dirname $img` -type f -name | wc -l) -eq 0 && echo $img; done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment