Skip to content

Instantly share code, notes, and snippets.

@embolden
Created September 23, 2013 20:37
Show Gist options
  • Save embolden/6676572 to your computer and use it in GitHub Desktop.
Save embolden/6676572 to your computer and use it in GitHub Desktop.
OSX find to delete any WordPress generated thumbnail with 1-4 digits x 1-4 digits of height/width.
find -E . -regex ".*-[[:digit:]]{1,4}x[[:digit:]]{1,4}.(jpg|png|gif)" -exec rm {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment