If the files have the extension .JPG#!/bin/bash for i in *.JPG; do convert $i -resize 10% $(basename $i .JPG).JPG; done 5/5 - (2 votes)