#!/bin/bash # This must be run from your backup folder! # BE CAREFUL! find ./uploads/**/* -iname '*-*[0-9]x*[0-9].jpg' -exec rm -rf {} \;