Created
September 23, 2013 20:37
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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