# using a regular expression to find images such as "image01_abc.png", "image02_def.png", ... find * -regextype "egrep" \ -iregex 'image[0-9][0-9].*' \ -exec convert {} -resize 70% "resize_{}" \;