#!/bin/sh for img in *.jpg; do convert $img -resize 140x184 m-$img done